← Back to archive

Stdle #113 · scope · 2026-09-21

What does this JavaScript snippet output?

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

const proto = { greet: "hi" };
const obj = Object.create(proto);
obj.greet = "yo";
console.log(obj.greet, proto.greet);
Scope
4 attempts left

Answer & explanation