← Back to archive

Stdle #49 · async · 2026-07-19

What does this JavaScript snippet output?

A past puzzle — fully playable. 4 attempts, hints on wrong guesses.

const arr = [1, 2, 3];
const results = await Promise.all(arr.map(async x => x * 2));
console.log(results.join(','));
Async
4 attempts left

Answer & explanation