AITeky Learn

AiTeky Original Interactive Learning & Practice Intermediate

Safer at scale: a compiler that checks your shapes, checks on every save and a backend you can trust

Let TypeScript catch a misspelt field and a forgotten order status before the code runs, write tests that catch an off-by-one at the free-delivery boundary, let a linter flag the bugs people miss in review, and build an orders API that rejects bad input with clear errors.

JavaScript lets almost anything run, which is pleasant for a small script and expensive for a shop with ten developers. Three tools make a growing JavaScript codebase safe to change: TypeScript, which describes the shape of every value and checks the code before it runs; tests and a linter, which run on every change; and a back end that checks everything it receives and answers with clear status codes.

This course continues with Nikhil from "From a script tag to a shipped service" as the shop moves its code to TypeScript and builds a new orders API in Node.js. Each lesson has small Python programs that run in your browser and copy what the TypeScript checker, the test runner, the linter and the server do, next to the real TypeScript. Python stands in for them: run the code to see the rule, then use the real tools at work. Check each tool's documentation for exact syntax. All data is made up.

  • Learn lessons explain one idea at a time and let you run it.
  • Industry ready lessons decide and justify, and end with interview questions.

Take "From a script tag to a shipped service" first.

Locked. Sign up free

Learn

Understand each idea with everyday examples. No coding background needed.

  1. 01 30 min 🔒 AiTeky Pass TypeScript basics: types, interfaces, unions and generics Describe an order with an interface and let a checker catch a misspelt field and a price sent as text, use a union of order statuses so a forgotten case is caught before release, write one generic function for any list, and see why types vanish at run time.
  2. 02 30 min 🔒 AiTeky Pass Testing with Jest or Vitest and linting with ESLint Write table-style tests for a delivery-fee function, see a test suite miss an off-by-one until it tests the boundary, replace a real API with a fake so a test runs in milliseconds, and let ESLint find four bugs a reviewer skimmed past.

Industry ready

Real problems from real jobs, and the questions interviewers ask about them.

  1. 03 30 min 🔒 AiTeky Pass On the job: a typed Node.js API with Express Build the request flow of an orders API in Express and TypeScript: validate the body with a schema and return every field error at once, answer with the right status codes, stop a retried request from creating a second order, and keep internal errors out of the response.

We use essential cookies to run the site. With your permission we also set one anonymous ID to count unique visitors, and analytics cookies to see which pages help learners. Cookie notice

Join AiTeky Learn. It's free.

Create a free account to track your progress, save items for later and get study suggestions.

Sign up free Log in