There's my code:
fetch(data)
.then(blob => blob.json())
.then(newData => array.push(newData))
let be = array[0].id;
I'd like to access my array data, but I end up with undefined and I don't know why.
After reloading page
However it works just fine in console.
Working good with console.log
I've been reading all over the internet for hours, but I can't seem to understand why does it work like that.