FrontendInterviews.dev

619. async throw vs Rejection

Easy•

Predict the output.

async function fn() {
  throw new Error('x')
}
fn().catch((e) => console.log(e.message))

What is the correct output/behavior?

Select an option and submit your answer.
Next Problem