Skip to content
RED SAG Skills
easyStudy question · answer published in Node.js interview questions, so no pointsjavascriptasync-awaiterror-handling

try/catch around an async call

Running this in Node.js, what happens?

async function load() {
  throw new Error('boom')
}

try {
  load()
} catch (e) {
  console.log('caught')
}
console.log('done')
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions