← Back to archive

Stdle #28 · narrowing · 2026-07-04

What does this TypeScript snippet output?

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

const n: bigint = 10n
console.log(typeof n)
Narrowing
4 attempts left

Answer & explanation