TypeScript quizzes
JavaScript with a type system that catches mistakes before they run.
Practise TypeScript with short quizzes that mix concept checks, code reading and debugging, from beginner to intermediate level. Written against TypeScript 5.x with strict mode on.
TypeScript quiz levels
Difficulty rises through concepts (code reading, debugging, edge cases, trade-offs), not through trick wording.
- Beginner
Core vocabulary and fundamentals.
- TypeScript Basics · 7 questions
- Intermediate
Concepts applied to real problems.
- Generics, Utility Types & Narrowing · 7 questions
Topics covered in the TypeScript quizzes
Every topic below appears in at least one question today. The number is how many questions cover it.
- Compile-time vs runtime · 1
- const assertions · 1
- Discriminated unions · 1
- Enums vs unions · 1
- Generics · 1
- interface vs type · 1
- never · 1
- Runtime safety · 1
- strictNullChecks · 1
- Type annotations · 1
- Type assertions · 1
- Union narrowing · 1
- unknown vs any · 1
- Utility types · 1
How this works
Practice or exam mode
Practice mode explains each answer straight away. Exam mode holds all answers until you finish, then shows a full review.
Shuffled answer order
Options are shuffled on every attempt, so you learn the idea rather than the position of the right letter.
Timer, flags and skips
A timer runs while you play. Flag questions to revisit them, or skip and come back from the question navigator.
Saved on your device
Scores, streaks and topic accuracy are stored in your browser only. There is no account.
Learn TypeScript first, or keep going
TypeScript quiz FAQ
How many TypeScript quizzes are there?
There are currently 2 multiple-choice TypeScript quizzes with 14 questions in total. The numbers on this page come from the live quiz catalogue.
Which TypeScript quiz should I start with?
Start with TypeScript Basics, the beginner-level quiz. Then work up through Intermediate.
Are the TypeScript quizzes free?
Yes. There is no sign-up. Your scores and streaks are stored in your own browser.
Do the TypeScript quizzes explain the answers?
Yes. Every question has an explanation covering why the right answer is correct and why the tempting alternatives are not.
Do I need to know JavaScript first?
Yes. TypeScript is JavaScript plus types, so comfort with JavaScript functions, objects and arrays helps a lot. The JavaScript quizzes are a good start.
Does TypeScript check types while the program runs?
No. Types are erased when the code is compiled, which is why data from outside your program still needs runtime validation.