What is JavaScript? (And why should you care?)
So... what even is JavaScript?
Let me ask you something first. You open Instagram, you double-tap a photo, and a little heart pops up. Who told the page to do that?
That "someone" is JavaScript.
Think of a website like a human body:
- HTML is the skeleton — the structure (headings, buttons, images).
- CSS is the skin and clothes — the looks (colours, fonts, spacing).
- JavaScript is the brain and muscles — it makes things move and react.
Without JavaScript, a webpage just sits there. You click a button and... nothing happens. JavaScript is what makes a page actually do things.
Why was JavaScript even made?
Back in 1995, websites were boring. Just text and pictures, like a newspaper. There was no way for a page to react when a user did something. So a developer named Brendan Eich built JavaScript in just 10 days to bring websites to life.
Yes — 10 days. The language you are about to learn was born in less than two weeks.
Where does JavaScript run?
Here is the nice part — JavaScript runs inside your browser. Chrome, Firefox, Safari... every browser has a small engine that reads and runs JavaScript. You do not need to install anything heavy. The browser you are using right now can run it.
Quick takeaway: HTML = structure, CSS = style, JavaScript = behaviour. You are here to learn the part that makes websites alive.
In the next lesson, I will show you how to write your very first line of JavaScript — and you will run it yourself in two minutes.