← Back to archive

Stdle #104 · scope · 2026-09-12

What does this JavaScript snippet output?

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

function f() {}
console.log(f.length);
function g(a, b, c = 1, d) {}
console.log(g.length);
Scope
2 lines
4 attempts left

Answer & explanation