← Back to archive

Stdle #90 · async · 2026-08-29

What does this JavaScript snippet output?

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

async function inner() { return Promise.resolve('flat'); }
async function outer() { return inner(); }
outer().then(v => console.log(v));
Async
4 attempts left

Answer & explanation