TypeScript
JavaScript that scales with you.
Beginner13 lessons≈2 h 52 min total
Start this trail
Begins with: Why TypeScript?
Trail map
Camp 1
Getting started
Why types exist and how TypeScript relates to JavaScript.
Camp 2
Basic types
The everyday types you'll annotate constantly.
- string, number, booleanOn the trail map
- Arrays and tuplesOn the trail map
- Objects and interfacesOn the trail map
- Union typesOn the trail map
Camp 3
Functions & generics
Typed functions, optional parameters, and your first generic.
- Typing functionsOn the trail map
- Optional and default parametersOn the trail map
- GenericsOn the trail map
Camp 4
Real-world types
Narrowing, aliases, and a typed mini project.
- NarrowingOn the trail map
- Type aliases vs interfacesOn the trail map
- Project: typed todo listOn the trail map