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