FrontendInterviews.dev

668. Promise.finally Throw Overrides

Easy•

Predict the output.

Promise.resolve('ok')
  .finally(() => { throw 'boom' })
  .then(console.log)
  .catch(console.log)

What is printed in the console?

Select an option and submit your answer.
Next Problem