TypeScript concepts

TypeScript · Classes

TypeScript Classes puzzles

2 TypeScript puzzles on classes. Read the snippet, guess the output, then reveal the answer and why TypeScript behaves that way.