JavaScript Powers the Modern Web
JavaScript Introduction
An introduction to JavaScript β what it is, where it runs, and what you can build with it.
What you'll learn
- Understand what JavaScript is and why it matters
- Run your first line of JavaScript
- Know what you can build with it
JavaScript is the programming language of the web. It runs in every browser, on every device that opens a web page. If youβve ever seen a website do something after you clicked β show a menu, validate a form, load more content β that was JavaScript.
What Youβll Learn
By the end of this track, youβll be able to read, write, and debug real-world JavaScript. Youβll be comfortable with the modern syntax (ES2024), the DOM, async code, and the platform APIs every web developer uses every day.
A Tiny Taste
This is a real, working JavaScript program. It logs a message to the browserβs developer console.
console.log("Hello, world!"); Donβt worry about every character yet β youβll learn what console.log
means in the next few lessons. The important thing is: this code runs.
Click Try it Yourself, change "Hello, world!" to your name, and
press Run to see the output update.
Where Does JavaScript Run?
Originally, JavaScript only ran in web browsers. Today it runs almost everywhere:
- In every browser β the web is built on it.
- On servers β via Node.js, Deno, and Bun.
- In mobile apps β via React Native and similar.
- On the desktop β via Electron (VS Code, Slack, Discord).
- In databases β MongoDB lets you query in JavaScript.
- In AI tools and CLIs β most modern devtools speak JavaScript.
What Youβll Need
Nothing. Every lesson in this track runs in your browser. You donβt need to install a thing.
When youβre ready to write your own programs locally, all youβll need is a text editor (we recommend VS Code) and a modern browser (you already have one).
Up Next
Youβll learn the two ways to add JavaScript to a web page.
JavaScript Where To β