Skip to content
RED SAGSkills
easy5 pts · first answer countsjavascriptfetchasync-await

Forgetting to await response.json

What does data hold here?

const res = await fetch("/api/user")
const data = res.json()
console.log(data.name)
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions