TS

TypeScript — Intermediate

IntermediateNode.js · 9 lessons

Model real-world data precisely with union types and generics, organise code with classes, handle asynchronous work and errors properly, and build and test your first HTTP server on Node.js.

Lessons

  1. 1Union Types & NarrowingValues that can be one of several types, and how TypeScript narrows them safely.Solution4-question quiz
  2. 2GenericsWrite functions and types that work with any type while staying type-safe.Solution4-question quiz
  3. 3Classes & Object-Oriented DesignConstructors, access modifiers, interfaces, inheritance and abstract classes.Solution4-question quiz
  4. 4Asynchronous Code: Promises & async/awaitHandle slow operations (network, files, timers) without blocking Node.js.Solution4-question quiz
  5. 5Error Handlingtry/catch with unknown errors, custom error classes and the Result pattern.Solution4-question quiz
  6. 6Building an HTTP ServerCreate a JSON API with Node's built-in http module — routes, body parsing, status codes.Solution4-question quiz
  7. 7Testing with node:testWrite automated tests with Node's built-in test runner and assertions.Solution4-question quiz
  8. 8REST APIs with ExpressBuild a typed CRUD API with Express 5: routes, params, JSON bodies, type guards, status codes, error middleware and HTTP tests.Solution4-question quiz
  9. 9PostgreSQL with node-postgresConnect with a pool, run parameterised queries with typed rows, and keep related changes atomic with transactions.Solution4-question quiz
Start with lesson 1 →
Ask AI