Stdle #90 · async · 2026-08-29
A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
1async function inner() { return Promise.resolve('flat'); }2async function outer() { return inner(); }3outer().then(v => console.log(v));
Console output
Why
Async functions flatten returned promises rather than wrapping them in extra layers. inner() resolves to "flat", outer() returns that promise and adopts it, so outer() also resolves to "flat". No promise-of-a-promise. The handler logs "flat".