← Back to archive

Stdle #157 · scope · 2026-11-04

What does this JavaScript snippet output?

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

const o = {
v: 7,
show() { return this?.v ?? "none"; }
};
const f = o.show;
console.log(f());
Scope
4 attempts left

Answer & explanation