← Back to archive

Stdle #150 · narrowing · 2026-11-03

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