Having trouble making the string method work with an array - it keeps showing up as empty.
let url = "https://api.myjson.com/bins/be7fc"
let data =[];
fetch(url)
.then(response => response.json())
.then(result => data.push(result[0].id));
//Array
console.log(data);
// to string
let x = data.toString();
console.log(x);
Check out this screenshot of the console
Can't figure out what I might be missing here...