← Back to archive

Stdle #148 · narrowing · 2026-11-01

What does this TypeScript snippet output?

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

const v: number = 0
console.log(v || 100)
Narrowing
4 attempts left

Answer & explanation