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
Stdle #43 · enums · 2026-07-19
A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
enum Planet { Earth = 'Earth' }console.log(`${Planet.Earth} is ${Planet.Earth === 'Earth'}`);