All courses

Course

Learn TypeScript

JavaScript with types that catch bugs early. 7 units that take you from your first program to the language's advanced features.

Units
7
Topics
37
Questions
190
Challenges
22
1

Unit 1

Typed basics

Annotations, inference and function types

  1. Why TypeScript
  2. Typing variables
  3. Basic types
  4. The unknown type
  5. Typed parameters
  6. Function types
  7. Unit quiz and coding challenge
2

Unit 2

Object types

Interfaces, unions and intersections

  1. Object types
  2. Structural typing
  3. Union types
  4. Literal types
  5. Extending interfaces
  6. Intersection types
  7. Unit quiz and coding challenge
3

Unit 3

Narrowing

Type guards, discriminated unions and null

  1. Type guards
  2. Discriminated unions
  3. Handling null
  4. Unit quiz and coding challenge
4

Unit 4

Generics

Reusable, type-safe code

  1. Generic functions
  2. Generic constraints
  3. Typed property access
  4. Generic types
  5. Generic classes
  6. Unit quiz and coding challenge
5

Unit 5

Classes

Access modifiers, abstract classes and interfaces

  1. Typed classes
  2. Abstract classes
  3. Implementing interfaces
  4. Unit quiz and coding challenge
6

Unit 6

Type-level programming

keyof, typeof, utility, mapped and conditional types

  1. Types from values
  2. keyof
  3. Indexed access types
  4. as const
  5. Utility types
  6. Mapped types
  7. Conditional types
  8. Template literal types
  9. Unit quiz and coding challenge
7

Unit 7

TypeScript in practice

Enums, modules, async code and configuration

  1. Enums
  2. Typing async code
  3. Type assertions
  4. Compiler options
  5. Modules
  6. Declaration files
  7. Unit quiz and coding challenge

Finale

Course exam

100 items from the whole course: 50 questions with choices, 35 typed answers and 15 coding challenges that mix topics.