Learn TypeScript Online — Free Interactive Course

Free TypeScript Course · Course overview & lesson outline

Learn TypeScript Online — Free Interactive Course

Complete TypeScript for Everyone: 5 chapters of visual explanations and 21 hands-on exercises, from foundations to reliable programs and applied projects.

Learn TypeScript online with 21 free interactive lessons. Practice TypeScript types, interfaces, generics and safe programs in your browser. Read each explanation, edit the starter code, and try the exercise to check your understanding.

Beginner · 21 lessons · About 3.3 hours. Learn at your own pace.

What you’ll learn

Chapter 1: Primitive Types & Functions

Color-coded jars, vending machine contracts, optional parameters, and coordinate tuples.

  1. 1. Color-Coded Kitchen Jars
  2. 2. The Coin Slot Contract
  3. 3. Hold the Pickles!
  4. 4. Egg Cartons & GPS Badges

Chapter 2: Interfaces & Union Types

House blueprints, traffic lights, airport customs narrowing, and security badges.

  1. 5. The House Construction Blueprint
  2. 6. The Strict Traffic Signal
  3. 7. The Customs Inspection Lane
  4. 8. Color-Coded Security Badges

Chapter 3: Generics & Utility Types

Cargo shipping containers, generic constraints, house renovations, and state machines.

  1. 9. The Standard Cargo Container
  2. 10. Must Be This Tall to Ride!
  3. 11. Remodeling Only the Kitchen
  4. 12. Laminated Protection & Labeled Lockers
  5. 13. Capstone: Type-Safe State Machine

Chapter 4: Model data precisely

Keys, records, immutability, and discriminated state.

  1. Keys as a type
  2. A complete lookup table
  3. Read-only inputs
  4. Give every state a distinct shape

Chapter 5: Unknown input & a typed project

Validate boundaries, make optional data safe, and build reusable typed transformations.

  1. Unknown needs proof
  2. Optional properties and useful defaults
  3. A transformation with two type parameters
  4. Project: a typed inventory report

Is this course free?

All lessons and coding exercises are free to explore without an account. Progress is saved in this browser. Optional account and Supporter features have separate terms.

Can I learn offline?

Open the course and its language while connected. Wait for “Available offline” before disconnecting. Saved lessons and the editor can be used offline. Some lesson images may still need internet access. Cloud sync and AI require internet access.