Question · JavaScript and TypeScript course · Module 4: Asynchronous JavaScript
Promise.allSettled()
How does Promise.allSettled() differ from Promise.all()?
Answer options
- Promise.allSettled() only works with async/await, not with .then()
- Promise.allSettled() automatically retries rejected Promises
- Promise.allSettled() returns only the first completed Promise
- Promise.allSettled() waits for ALL Promises to complete, regardless of whether they were fulfilled or rejected
You can check the correct answer by solving this task in the CodeWorlds game.