← Back to archive

Stdle #30 · async · 2026-06-30

What does this JavaScript snippet output?

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

const p = Promise.resolve(Promise.resolve('nested'));
p.then(v => console.log(v));
Async
4 attempts left

Answer & explanation