TypeScript — Free Quiz Course
Test your TypeScript knowledge: type annotations and inference, interfaces vs types, unions, generics, narrowing, and the compiler.
5 chapters, 50 questions. Free, no signup. Progress is saved in your browser.
- Chapter 1: Types & InferenceType annotations, what the compiler infers on its own, primitives, arrays and tuples, and the special types: any, unknown, void, and never.
- Chapter 2: Interfaces, Types & UnionsInterface vs type alias, optional and readonly properties, union and intersection types, and literal types.
- Chapter 3: Functions & GenericsTyping parameters and return values, optional and default parameters, typing destructured objects, and writing your first generics.
- Chapter 4: Narrowing & Type GuardsHow TypeScript narrows types with typeof, instanceof and in, discriminated unions, type predicates, and when (not) to use as.
- Chapter 5: The Compiler & Ecosystemtsconfig and strict mode, what gets erased at runtime, declaration files, and validating runtime data with tools like Zod.
Course completed
You finished every chapter — best score/.
How it works
Each chapter is a short quiz: one question at a time, with immediate feedback and an explanation after every answer. Wrong answers teach you as much as right ones.
Your progress is stored in your browser (localStorage), so you can leave and come back any time. Nothing leaves your machine, and there is no account or signup.
The questions are based on tutorials published on this site — every chapter links the related posts, and you can grab the free TypeScript Handbook to study the whole topic.