← Back to archive

Stdle #102 · quirks · 2026-09-10

What does this JavaScript snippet output?

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

const x = [1, 2] ?? [3];
const y = 0 || 5;
console.log(x.length, y);
Quirks
4 attempts left

Answer & explanation