Skip to content
RED SAG Skills
easyStudy question · answer published in JavaScript interview questions, so no pointsjavascriptfetchasync-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