← Back to archive

Stdle #68 · quirks · 2026-08-07

What does this JavaScript snippet output?

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

const o = { nested: { v: 1 } };
const copy = { ...o };
copy.nested.v = 99;
console.log(o.nested.v);
Quirks
4 attempts left

Answer & explanation