← Back to archive

Stdle #35 · scope · 2026-07-05

What does this JavaScript snippet output?

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

console.log(typeof foo, typeof bar);
function foo() {}
var bar = function () {};
Scope
4 attempts left

Answer & explanation