JavaScript for Beginners: Make a Web Page Actually Do Something
This is for people who have never written JavaScript and want a web page that reacts when someone clicks, types or submits. You will write JavaScript that runs in your browser, change the page with it, and read your own errors instead of pasting code you don't understand. If you skip the basics and copy snippets until something works, you will be stuck the first time the console turns red, and it will turn red.
Course access
-
Before You Write Code (empty)3Lessons · 15 min
-
What JavaScript Actually Does in Your Browser
What JavaScript is for, what it runs on, and how it differs from HTML, CSS and Java. After this, you'll know what a few lines of JavaScript can and can't do on a web page.
5 min -
Running JavaScript in the Console and in a Script File
Open the browser console, run your first lines there, then move the same code into a .js file linked from an HTML page. After this, you have a setup that runs every example in this course.
5 min -
-
-
The Basics You Cannot Skip (empty)4Lessons · 20 min
-
JavaScript let, const, and Why Not var
How to store values with const and let, when to use which, and why var causes bugs you don't need. After this, you can declare variables without guessing.
5 min -
JavaScript Data Types and typeof
Strings, numbers, booleans, null, undefined, arrays and objects, and how typeof tells you what you actually have. After this, "51" instead of 6 stops being a mystery.
5 min -
JavaScript == vs ===: Comparing Values Without Surprises
What == and === do differently, why == gives strange results, and the simple rule for which to use. After this, your if statements compare what you meant them to compare.
5 min -
-
-
Making Decisions and Repeating Work (empty)3Lessons · 15 min
-
JavaScript if, else and the Ternary Operator
Make your code choose with if, else if and else, combine conditions, and use the ternary for short either-or values. After this, you can write decisions that run the branch you expect.
5 min -
JavaScript Loops: for, for...of and while
Repeat work with for, for...of and while, stop early with break, and avoid the infinite loop that freezes your tab. After this, you can pick the right loop for a list or a condition.
5 min -
-
-
Organizing Your Code (empty)3Lessons · 15 min
-
JavaScript Functions and Arrow Functions
Write functions that take inputs and return results, then write the same thing as an arrow function. After this, you can stop copying the same lines three times.
5 min -
JavaScript Arrays and Objects
Store lists in arrays and labelled data in objects, read and change them, and combine both for real data like a cart. After this, you can hold more than one value without twenty variables.
5 min -
-
-
Touching the Page (empty)4Lessons · 20 min
-
Changing the Page With the JavaScript DOM
Find elements with querySelector, change their text, classes and attributes, and add new ones. After this, your JavaScript can change what the visitor sees.
5 min -
JavaScript Click and Form Events
React to clicks, typing and form submits with addEventListener, and stop a form from reloading the page. After this, the page responds when someone uses it.
5 min -
Reading JavaScript Errors in the Browser Console
Read a red console error from the type to the file and line number, and fix the most common beginner errors. After this, an error tells you where to look instead of making you guess.
5 min -
-
-
Final Check: JavaScript for Beginners (empty)1Lessons · 15 min
-
About
This is for people who have never written JavaScript and want a web page that reacts when someone clicks, types or submits. You will write JavaScript that runs in your browser, change the page with it, and read your own errors instead of pasting code you don't understand. If you skip the basics and copy snippets until something works, you will be stuck the first time the console turns red, and it will turn red.
- Responsible
- John G
- Last Update
- 09/03/2026
- Completion Time
- 1 h 40 min
- Members
- 1
Reviews
Sign in to write a reviewComments
Sign in to commentNo comments yet.