Tool
TypeScript
JavaScript with a type system
Learn TypeScript's type annotations, interfaces, and how they catch bugs early.
8
Chapters
4
Practice formats
1
Self-paced
Curriculum
8 chapters, each with a tutorial, a live example, a quiz, an exercise, a challenge, and class practice.
- 1preview
Introduction to TypeScript
Why add types to JavaScript.
- 2
Basic Types
string, number, boolean, arrays, and unions.
- 3
Interfaces
Describing the shape of an object.
- 4
Functions & Types
Typing parameters and return values.
- 5
Generics
Writing reusable, type-safe functions and types.
- 6
Enums
Naming a fixed set of related values.
- 7
Type Narrowing
typeof, instanceof, and discriminated unions.
- 8
Classes & Access Modifiers
public, private, and protected.