TS
TypeScript — Beginner
Start from zero: install Node.js, write and run your first TypeScript program, and learn the building blocks every program uses — values, types, functions, decisions, loops, objects and modules.
Lessons
- 1Setting up Node.js & TypeScriptInstall the tools, create a project and run your first program.
- 2Variables & Basic Typeslet vs const, primitive types, type inference, arrays and any vs unknown.
- 3FunctionsParameters, return types, optional and default values, arrow functions.
- 4Decisions & Loopsif/else, switch, comparison operators, for, for...of and while loops.
- 5Objects, Interfaces & Array MethodsDescribe data with interfaces, then transform it with map, filter and reduce.
- 6Working with Text & DatesString methods, template literals and template literal types, neat formatting with padStart and Intl, and safe date handling.
- 7Modules, Node.js Built-ins & npm ScriptsSplit code across files, read files with node:fs and automate tasks with npm scripts.