FrontendInterviews.dev

673. Promise.allSettled Result Shape

Easy•

Predict the output.

Promise.allSettled([Promise.resolve(1), Promise.reject(2)])
  .then((r) => console.log(r[0].status, r[1].status))

What is printed in the console?

Select an option and submit your answer.
Next Problem