JavaScript · Middle · Question 18 of 75

What does Promise.allSettled return?

Explanation

allSettled never rejects: it waits for all promises and describes each outcome ('fulfilled' or 'rejected'). Handy when you need to run independent requests and show a partial result.

Further reading

Problem with a question

JavaScript · Middle · question 18

Test yourself

Take the JavaScript · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz