← Back to archive

Stdle #57 · async · 2026-07-27

What does this JavaScript snippet output?

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

async function f() {
console.log(1);
await null;
console.log(2);
}
console.log(0);
f();
console.log(3);
Async
4 lines
4 attempts left

Answer & explanation