TypeScript quiz: 60 questions
60 questions from the 15 lessons of TypeScript: JavaScript with Types. Each answer is explained, with a link back to the lesson it comes from, and your best score stays on this device.
Test yourself
60 questions from this course's lessons, in a random order. See what you remember, then go back to the lessons behind the questions you missed.
What the quiz covers
- Why TypeScript (4 questions)
- Basic types: primitives, arrays, tuples and unknown (4 questions)
- Typed functions (4 questions)
- Object types and interfaces (4 questions)
- Type aliases, unions and intersections (4 questions)
- Narrowing: from a union to one type (4 questions)
- Classes in TypeScript (4 questions)
- Inheritance, abstract classes and implements (4 questions)
- Enums, as const and literal types (4 questions)
- Generic functions (4 questions)
- Generic classes and typed collections (4 questions)
- Utility types (4 questions)
- Mapped, conditional and template literal types (4 questions)
- Async code with types (4 questions)
- Designing type-safe programs (4 questions)