FrontendInterviews.dev

609. Promise.all Rejection Behavior

Easy•

Predict what is logged.

Promise.all([
  Promise.resolve('ok'),
  Promise.reject('fail'),
  Promise.resolve('later')
])
  .then((v) => console.log('then', v))
  .catch((e) => console.log('catch', e))

Which console line appears?

Select an option and submit your answer.
Next Problem