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

What does this loop log, and roughly how long does it take to finish?

async function run() { for (const x of [1, 2, 3]) { await new Promise((r) => setTimeout(r, 1000)); console.log(x); } } run();