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

How does `Promise.all` handle an array that mixes promises with plain (non-promise) values?

const out = await Promise.all([1, Promise.resolve(2), 3]); console.log(out);