← Back to archive

Stdle #179 · async · 2026-11-26

What does this JavaScript snippet output?

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

Promise.resolve(2)
.finally(() => { return 999; })
.finally(() => {})
.then(v => console.log(v));
Async
4 attempts left

Answer & explanation