← Back to archive

Stdle #90 · modern · 2026-09-04

What does this TypeScript snippet output?

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

const label: string = ''
console.log(label || 'A', label ?? 'B')
Modern
4 attempts left

Answer & explanation