Skip to content
RED SAGSkills
hard20 pts · first answer countsjavascriptasync-awaiterrors

return versus return await in try

fetchUser() rejects. What does load() do?

async function load() {
  try {
    return fetchUser()
  } catch {
    return "fallback"
  }
}
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions