79460321

Date: 2025-02-22 21:17:43
Score: 1
Natty:
Report link

i think you should use this code->

const resp = await fetch(url);
const responseData = await resp.json();
console.log(responseData.map(item => item.price));

if your 'responseData' is wrapped in a single array. then you will get undefined. Use map in console.log for better vis.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: xGod