Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumJavaScriptPromise.all race allSettledSingle-choice MCQ

What is the shape of the resolved value here?

const r = await Promise.allSettled([ Promise.resolve(1), Promise.reject(new Error('boom')) ]); console.log(r[0].status, r[1].status, r[1].reason.message);