TypeScript concepts

TypeScript · Enums

TypeScript Enums puzzles

1 TypeScript puzzle on enums. Read the snippet, guess the output, then reveal the answer and why TypeScript behaves that way.