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

What is the difference in how these two snippets run? (A starts each fetch, awaits in sequence; B awaits a single Promise.all)

// A const a = await getUser(); const b = await getPosts(); // B const [a, b] = await Promise.all([getUser(), getPosts()]);