Learn variables, functions, arrays and objects, the DOM, async code, and then add TypeScript types — and use them to make a profile page interactive.
HTML gives a page its structure and CSS gives it a look, but neither can do anything. A button that filters a list, a form that checks your input, a page that loads fresh data without reloading — that behavior is JavaScript. It is the only programming language that every browser runs, and with Node.js it also runs servers, command-line tools, and (through frameworks) mobile and desktop apps. Learning it once opens almost every door in this roadmap, from React to NestJS.
TypeScript is JavaScript with types added: you describe what kind of value each variable holds, and the compiler catches a whole family of mistakes before the code ever runs. It is now the default choice for serious projects, and it is easy to learn once you know JavaScript — which is why this series teaches both, in that order.
The first ten chapters cover JavaScript itself: what it is and where it
runs, values and variables, conditions, loops, functions and scope,
arrays and objects, modules and npm, the DOM and events, asynchronous
code with fetch, and errors and debugging. The last two chapters add
TypeScript: first the basics of the type system, then converting a real
project to TypeScript and compiling it.
You won't just read about it. Across the series you extend the profile page of Dara Sok from HTML & CSS Fundamentals. Each chapter adds a piece: a filterable project list, a dark-mode toggle, a contact-form validator, and a list of GitHub repositories loaded from a real API. By the end you have a working interactive site, and you've moved its logic into typed, compiled TypeScript.
You need a computer running Windows, macOS, or Linux, a modern browser
with DevTools (Chrome, Edge, or Firefox), a code editor (Visual Studio
Code is free and used throughout), and
Node.js (the LTS version, installed with nvm or
the official installer). The command line from Command Line
Basics and the Git setup from Git &
GitHub for Beginners are used
throughout. Nothing costs money.