← Back to archive

Stdle #105 · async · 2026-09-13

What does this JavaScript snippet output?

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

function* g() { yield 3; yield 1; yield 2; }
console.log(Math.max(...g()));
Async
4 attempts left

Answer & explanation