← Back to archive

Stdle #159 · scope · 2026-11-06

What does this JavaScript snippet output?

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

function greet(g) { return g + ", " + this.name; }
const bound = greet.bind({ name: "Ada" });
console.log(bound("Hi"));
Scope
4 attempts left

Answer & explanation