Hint
Promise.allSettled waits for ALL regardless of outcome. Promise.all fails fast on first rejection.
Promise.allSettled([
Promise.resolve(1),
Promise.reject('err'),
Promise.resolve(3),
]).then(results => {
console.log(results[0].status);
console.log(results[1].status);
console.log(results[1].reason);
});fulfilled rejected err
Explanation: allSettled never rejects. Each result has status + value (fulfilled) or reason (rejected).
Key Insight: Promise.allSettled waits for ALL regardless of outcome. Promise.all fails fast on first rejection.