← Back to archive

Stdle #116 · async · 2026-09-24

What does this JavaScript snippet output?

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

Promise.resolve('orig')
.finally(() => { throw new Error('fin'); })
.catch(e => console.log(e.message));
Async
4 attempts left

Answer & explanation