How to call data from this array??
I have to add two values from others urls.
enter image description here
<table id="sales_table">
<thead>
<tr id="sales_item_title">
</tr>
</thead>
<tbody>
<tr id="sales_item"></tr>
</tbody>
</table>
<script>
async function init(){
try{
const results = await Promise.all([
fetch('https://min-api.cryptocompare.com/data/price?fsym=ETH&tsyms=PLN').then((response)=> response.json()),
fetch('https://min-api.cryptocompare.com/data/all/coinlist').then((response)=> response.json()),
].map(promise=>promise.catch(error=>console.error)));
console.log(results);
document.querySelector('#sales_item').innerHTML = results.0.PLN
}catch (error){
console.error(error);
}
}
init();
</script>