Fetch API returning undefined?
I'm attempting to get the product title from running this short sample code. The console.log returns this data (see attached image). How do I reference the title from the object? I've tried
data.title
& data[0].title
and can't seem to log anything besides undefined.
1 Reply
I already answered your question from an hour ago. (please be a bit more patient 😉