Lesson 1 of 27

What JavaScript is

What JavaScript is

JavaScript makes pages interactive — it responds to clicks, changes content, validates forms and talks to servers. HTML is structure, CSS is style, and JavaScript is behaviour.

It runs right in the browser. Here it changes the heading when you click.

See it run — click the button:

Try it Yourself
Loading editor…
Result

Key points

  • JavaScript adds behaviour to a page.
  • It runs in the browser — no reload needed.
  • HTML = structure, CSS = style, JS = behaviour.

Your turn: change the new text to your own message.

Q&A · 0

Enrol to ask questions and join the discussion.

No questions yet — be the first to ask.