Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyNodeJSpromises and async awaitSingle-choice MCQ

Two promises resolve after different delays. What does Promise.all resolve to?

const a = new Promise((r) => setTimeout(() => r('a'), 100)); const b = new Promise((r) => setTimeout(() => r('b'), 10)); const result = await Promise.all([a, b]); console.log(result);