← Back to archive

Stdle #138 · async · 2026-10-16

What does this JavaScript snippet output?

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

Promise.reject(1)
.catch(e => e + 1)
.then(v => console.log(v));
Async
4 attempts left

Answer & explanation