Basic JavaScript

A free, ordered series of lessons covering the JavaScript essentials — the syntax you’ll see in nearly every program, taught from the most common way of doing things to the least.

No prior experience required. Just a willingness to read, copy the examples into a console, and experiment.

What is JavaScript?

JavaScript is the programming language of the web — every interactive thing a website does, from validating a form to updating content without reloading the page, is written in it. Beyond the browser, the same language now runs servers, mobile apps, and command-line tools, which makes it one of the most widely used programming languages in the world.

Why learn it?

Because it’s everywhere, JavaScript is one of the most practical languages to know: it’s the only language that runs natively in every web browser, it has an enormous ecosystem of libraries and tools, and the syntax skills you build here carry over directly into frameworks, back-end services, and even other C-style languages. Whether you want to build websites, apps, or just understand how the software around you works, the essentials in this series are the foundation everything else is built on.

How this series works

Each lesson focuses on a single piece of JavaScript syntax. Inside you’ll find:

The list below is also the recommended reading order — lessons build on each other, so working through them top to bottom will make each new one easier to follow.

This series intentionally sticks to essentials and syntax. Topics like promises, async/await, and regular expressions are deliberately left out — they deserve their own dedicated series once you’re comfortable with the fundamentals covered here.