← Back to archive

Stdle #44 · async · 2026-07-14

What does this JavaScript snippet output?

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

console.log('A');
Promise.resolve().then(() => console.log('B'));
console.log('C');
Async
3 lines
4 attempts left

Answer & explanation