What is Programming
Programming is giving the computer step-by-step instructions. We write code in a language like JavaScript so the computer can run it. Browsers understand JavaScript and can run it on web pages.

Appy Says…
JavaScript is the language of the web. Every button you click, every animation, every live update on a website — that's JavaScript running in your browser right now. Learn this and you can build real websites that people actually use.
What is JavaScript?
JavaScript is the programming language that runs inside web browsers. While HTML creates the structure and CSS adds the style, JavaScript makes websites interactive — it responds to clicks, fetches data, updates content, and powers animations.
- •Runs in every browser (Chrome, Firefox, Safari) — no install needed
- •The only language browsers understand natively
- •Also runs on servers with Node.js — so you can use it everywhere
- •
console.log()is JavaScript's equivalent of Python'sprint()
Think of it like the controls in a game
HTML is the game world (the walls, floors, items). CSS is the art style (textures, colours, lighting). JavaScript is the game engine — the code that makes your character move, enemies attack, the score update, and the level change. Without JavaScript, a website is a static picture. With it, it's alive.
JavaScript Powers
- •Every YouTube like, comment, and share button — JavaScript handles the click
- •Google Maps updating as you drag — JavaScript fetches new map tiles in real time
- •Twitch chat streaming live — JavaScript keeps the connection open and adds new messages
- •The TikTok 'For You' feed loading more videos as you scroll — JavaScript detects scroll and loads more
Key Facts
- •JavaScript was created in 10 days in 1995 — and is now the most-used language in the world
- •Despite the name, JavaScript is completely unrelated to Java
- •Statements end with
;(optional but good practice) - •JS is case sensitive:
myScoreandmyscoreare different variables - •Use
letfor variables you'll change,constfor ones that stay fixed
Remember
Open any website, right-click → Inspect → Console. Type console.log("Hello world") and press Enter. That's JavaScript running live in your browser. You're already inside the developer tools.
What You Learned
- •JavaScript makes websites interactive — clicks, animations, live updates
- •Runs in every browser — no install needed
- •
console.log()outputs text (like Python'sprint()) - •Use
letfor changeable variables,constfor fixed ones - •Most-used programming language in the world
Key Facts
- →JavaScript was created in 10 days in 1995 — and is now the most-used language in the world
- →Despite the name, JavaScript is completely unrelated to Java
- →Statements end with
;(optional but good practice) - →JS is case sensitive:
myScoreandmyscoreare different variables - →Use
letfor variables you'll change,constfor ones that stay fixed
Real-World Examples
Remember
Open any website, right-click → Inspect → Console. Type console.log("Hello world") and press Enter. That's JavaScript running live in your browser. You're already inside the developer tools.
Quick Quiz
What does console.log do?