I would like to get the JSON data from Coinmarket.
I get the data but can't map the Data.
below my Code
const p = document.querySelector('p');
let endpoint = "https://api.coinmarketcap.com/v1/ticker/?convert=EUR";
let coinsdata = [];
fetch(endpoint)
.then(blob => blob.json()
.then(data => coinsdata.push(...data)));
console.log(coinsdata);
coinsdata.map(coindata => {
return p.innerHTML = coindata.id;
});