← Back to archive

Stdle #60 · async · 2026-07-30

What does this JavaScript snippet output?

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

console.log('A');
(async () => {
console.log('B');
await Promise.resolve();
console.log('C');
})();
console.log('D');
Async
4 lines
4 attempts left

Answer & explanation