← Back to archive

Stdle #126 · scope · 2026-10-04

What does this JavaScript snippet output?

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

function tag() { return this.id; }
const a = tag.bind({ id: "A" });
const b = a.bind({ id: "B" });
console.log(b());
Scope
4 attempts left

Answer & explanation