Skip to main content

TypeScript adds types to JavaScript, so many mistakes are found before the code runs. The course starts with the basics and goes on to collections, Big O analysis, unit testing, SOLID principles, design patterns and REST APIs. Each lesson gives you a prompt, the code and its output. Choose a section below to begin.

  1. TS Tutorial Lessons: 36

    The basics of TypeScript: simple types, arrays, tuples, object types, enums, union types, functions, classes and generics, then advanced types and project setup. Start here if you are new to TypeScript.

    Start with: TypeScript Tutorial →
  2. TS Collections Lessons: 7

    Everyday work with collections in TypeScript: transform, filter, group and sort them, take parts of them and calculate totals.

    Start with: TypeScript Map and Transform Collections →
  3. TS Big O Analysis Lessons: 8

    How to measure how fast code runs and how much memory it uses, from constant time O(1) to exponential time O(2ⁿ), with examples in TypeScript.

    Start with: TypeScript Big O Notation →
  4. TS Unit Testing Lessons: 5

    How to write tests that show your TypeScript code works: first tests, table-driven tests, testing errors and best practices.

    Start with: TypeScript Unit Testing →
  5. TS SOLID Principles Lessons: 5

    Five principles for code that is easy to change and maintain, each one shown with TypeScript examples.

    Start with: TypeScript Single Responsibility Principle →
  6. TS Design Patterns Lessons: 24

    The 23 classic design patterns, such as Singleton, Factory Method, Observer and Strategy, each one with a TypeScript example.

    Start with: TypeScript Design Patterns →
  7. TS REST API Lessons: 8

    How to build a REST API in TypeScript: JSON, an HTTP server, routing, methods and status codes, middleware and a complete CRUD example.

    Start with: TypeScript REST API Introduction →