← Back to archive

Stdle #185 · async · 2026-12-02

What does this JavaScript snippet output?

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

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

Answer & explanation