Learn TypeScript
Learn TypeScript once you know some JavaScript. Every lesson explains one idea in plain language, shows working code with its real output, and shows the exact errors the compiler catches.
Progress is saved in this browser. Accounts are coming later.
- Lessons available
- 39
- In the full course
- 39
- Beginner
Start from zero. No experience needed.
- Intermediate
Combine ideas to solve real problems.
- Advanced
The techniques used in professional work.
Course syllabus
All 39 lessons are available. Start anywhere, or follow the parts in order.
Part 1 · Beginner
TypeScript Fundamentals
Set up TypeScript, compile your first program, and learn the basic types, inference, arrays, functions and objects.
Part 2 · Intermediate
Building Types
Name and combine types with aliases, interfaces, unions and intersections, and narrow them safely.
Part 3 · Intermediate
Functions and Classes
Type callbacks and overloads, and use classes with access modifiers, abstract classes and interfaces.
Part 4 · Advanced
Generics
Write reusable, type-safe functions, interfaces and classes with generics and constraints.
Part 5 · Advanced
Advanced Types
Derive new types from existing ones with keyof, utility types, mapped, conditional and template literal types.
Part 6 · Advanced
TypeScript in Real Projects
Modules and declaration files, tsconfig options, typing the DOM, and typing async code and API data.
Part 7 · Intermediate
TypeScript Interview Preparation
Questions asked in front-end, full-stack and Node.js interviews, with clear answers.
Keep going with TypeScript
Become a Better Programmer
Get new tutorials, coding challenges, and cheat sheets.