FrontendInterviews.dev

667. Promise.catch with Non-function Handler

Easy•

Predict the output.

Promise.reject('x')
  .catch(42)
  .catch(console.log)

What is printed in the console?

Select an option and submit your answer.
Next Problem