Module 17: JavaScript Basics

Lesson 1 of 5 · 15–25 minutes

What JavaScript is

🏠The everyday picture

A house has walls (HTML) and paint (CSS). JavaScript is the electricity: lights that switch on, a doorbell that rings, a fan that turns. It makes things happen.

📘What it really is

🖱️Try it

Open developer tools → Console. Type each line and press Enter:

2 + 3
"Hello, " + "Asha"
alert("JavaScript is running")

✅Quick check

Which layer of a web page makes a menu open when you tap it?

Show the answer

JavaScript.

Something on your page doesn't work and nothing obvious is wrong. Where do you look first?

Show the answer

The browser console, where JavaScript errors are shown.

← BackModule 17
ProLearners Assist