← Back to archive

Stdle #87 · quirks · 2026-08-26

What does this JavaScript snippet output?

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

const a = [1, 2, 3];
const r = a.unshift(0);
console.log(r, a);
Quirks
4 attempts left

Answer & explanation