FrontendInterviews.dev

631. Promise.any All Rejected Case

Easy•

Predict what is logged.

Promise.any([Promise.reject('x'), Promise.reject('y')])
  .then(console.log)
  .catch((e) => console.log(e.name))

What is the correct output/behavior?

Select an option and submit your answer.
Next Problem