Loop through and pull in a certain amount of data
问题 I'm looking for a better way to loop through a json object and pull in a certain amount of objects. I'm just a little confused on how to create the loop. Right now I'm manually hardcoding and getting the data using [] to get key pair values. I know there is a better way to do this. Here is my code: fetch("https://api.coinmarketcap.com/v2/ticker/?start=0&limit=200") .then((response) => {return response.json(); }) .then((resp => { console.log(resp); let price = resp.data; showPrice(price); }))