← Back to archive

Stdle #43 · enums · 2026-07-19

What does this TypeScript snippet output?

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

enum Planet { Earth = 'Earth' }
console.log(`${Planet.Earth} is ${Planet.Earth === 'Earth'}`);
Enums
4 attempts left

Answer & explanation