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.

How many questions?

What the quiz covers

  1. Why TypeScript (4 questions)
  2. Basic types: primitives, arrays, tuples and unknown (4 questions)
  3. Typed functions (4 questions)
  4. Object types and interfaces (4 questions)
  5. Type aliases, unions and intersections (4 questions)
  6. Narrowing: from a union to one type (4 questions)
  7. Classes in TypeScript (4 questions)
  8. Inheritance, abstract classes and implements (4 questions)
  9. Enums, as const and literal types (4 questions)
  10. Generic functions (4 questions)
  11. Generic classes and typed collections (4 questions)
  12. Utility types (4 questions)
  13. Mapped, conditional and template literal types (4 questions)
  14. Async code with types (4 questions)
  15. Designing type-safe programs (4 questions)