← Back to archive

Stdle #86 · scope · 2026-08-25

What does this JavaScript snippet output?

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

const f = (function () { return function () {}; });
console.log(typeof f, typeof f());
Scope
4 attempts left

Answer & explanation