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.
- 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 → - 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 → - 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 → - 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 → - 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 → - 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 → - 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 →