← Back to archive

Stdle #144 · narrowing · 2026-10-28

What does this TypeScript snippet output?

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

const d: object = new Date(0)
console.log(d instanceof Date && d instanceof Object)
Narrowing
4 attempts left

Answer & explanation