← Back to archive

Stdle #38 · modern · 2026-07-14

What does this TypeScript snippet output?

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

enum E { X = "x", Y = "y" }
console.log(Object.keys(E).length, Object.keys(E).join(","));
Modern
4 attempts left

Answer & explanation