← Back to archive

Stdle #157 · narrowing · 2026-11-10

What does this TypeScript snippet output?

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

const o: object = {}
console.log(o ? "t" : "f")
Narrowing
4 attempts left

Answer & explanation