← Back to archive

Stdle #121 · scope · 2026-09-29

What does this JavaScript snippet output?

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

const list = [10, 20];
function f() { return list.map(function (x) {
return arguments.length;
}); }
console.log(f().join(","));
Scope
4 attempts left

Answer & explanation