How to pull data?

For example key name from json file using the fetch api. Example:
const url = await fetch('https://api.coinmarketcap.com/v2/ticker/');
 const crypto = await url.json();
June 3rd 19 at 19:19
1 answer
June 3rd 19 at 19:21
Solution
Working example - https://jsfiddle.net/Svupol/206udyqk/14/

const URLs = 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)
}
})
 });
Thanks, sort of did the same thing, but I beat undefined - nick_Nicolas commented on June 3rd 19 at 19:24

Find more questions by tags JavaScript