Course · Section 16: Asynchronous JavaScript: Promises, Async/Await, and AJAX · Lecture 278: Other Promise Combinators: race, allSettled and any
Implement an async function `collectStatuses(flags)` where each boolean creates a resolved (true) or rejected (false) promise. Use `Promise.allSettled` and return the array of `status` strings.
+ 1 hidden test run on Submit.
allSettled waits for every promise and reports each outcome's status, unlike all which rejects early.
Run your code to see results.