JavaScript for Beginners / Chapter 1 — Getting started (lessons 1–6) / Lesson 1
What JavaScript is
Time needed: about 8 min (estimate)
Reading settings
These settings are remembered on this device only.
You can try the opening of this lesson without an account.
Three roles
A web page is made of three languages.
HTML is the structure, CSS the appearance, and JavaScript the behavior.
JavaScript is responsible for the movement — "it opens when you press the button", "the display changes with what you type".
The preview below shows all three at work on the same page (run it and the title is rewritten).
Tab indents. To leave the editor, press Esc, then Tab.
Create a free account to keep reading
With an account you can read the rest of this lesson, take the quiz, and read every free lesson in this course. Lessons you answer correctly are recorded as complete.
Report a problem with this lesson
Log in to send a report.