const url = await fetch('https://api.coinmarketcap.com/v2/ticker/');
const crypto = await url.json();
const url = fetch('https://api.coinmarketcap.com/v2/ticker/')
.then((response) => {
response.json().then((data) => {
for (let key in data.data) {
console.log(data.data[key].name)
}
})
});