🇬🇧 Limited Time — UK Only·🎓 Free Learning for 1 Month·🤖 Free AI Training Included·📚 4,000+ Lessons · 35,000+ Quizzes·🏆 GCSE Mocks · Olympiad Papers·⚡ Selected Students Only · Limited Places·🎁 Free Value Worth £2,000·🇬🇧 Limited Time — UK Only·🎓 Free Learning for 1 Month·🤖 Free AI Training Included·📚 4,000+ Lessons · 35,000+ Quizzes·🏆 GCSE Mocks · Olympiad Papers·⚡ Selected Students Only · Limited Places·🎁 Free Value Worth £2,000·🇬🇧 Limited Time — UK Only·🎓 Free Learning for 1 Month·🤖 Free AI Training Included·📚 4,000+ Lessons · 35,000+ Quizzes·🏆 GCSE Mocks · Olympiad Papers·⚡ Selected Students Only · Limited Places·🎁 Free Value Worth £2,000·
JavaScript

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.

3 min 10 XP Lesson 1 of 21
What is Programming
🌐

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's print()
🎮

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: myScore and myscore are different variables
  • Use let for variables you'll change, const for 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's print())
  • Use let for changeable variables, const for 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: myScore and myscore are different variables
  • Use let for variables you'll change, const for ones that stay fixed

Real-World Examples

• 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

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

1 / 2

What does console.log do?