← Back to archive

Stdle #54 · quirks · 2026-07-24

What does this JavaScript snippet output?

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

const o = {};
o[1] = 'a';
o['1'] = 'b';
console.log(Object.keys(o).length, o[1]);
Quirks
4 attempts left

Answer & explanation