Courses
JavaScript for Beginners: Make a Web Page Actually Do Something
Check Yourself: The Basics You Cannot Skip
Five scenario questions on let, const, data types and equality. If you miss more than one, reread the lesson that covers it.
Course content
Join this Course
Sign in to save your progress.
-
Before You Write Code
-
What JavaScript Actually Does in Your Browser
-
Running JavaScript in the Console and in a Script File
-
-
-
The Basics You Cannot Skip
-
JavaScript let, const, and Why Not var
-
JavaScript Data Types and typeof
-
JavaScript == vs ===: Comparing Values Without Surprises
-
-
-
Making Decisions and Repeating Work
-
JavaScript if, else and the Ternary Operator
-
JavaScript Loops: for, for...of and while
-
-
-
Organizing Your Code
-
JavaScript Functions and Arrow Functions
-
JavaScript Arrays and Objects
-
-
-
Touching the Page
-
Changing the Page With the JavaScript DOM
-
JavaScript Click and Form Events
-
Reading JavaScript Errors in the Browser Console
-
-
- Final Check: JavaScript for Beginners
1.
You need a variable for the VAT rate, which never changes while the page runs. Which do you use?
2.
You wrote const cart = [] and then cart.push("rice"). What happens?
3.
A quantity field has 3 and the price is 250. Your total shows 3250. What's wrong?
4.
You check if (qty === NaN) after Number(input) and it never runs, even when the input is "abc". Why?
5.
if (status === "paid") is false, but status prints as paid. A teammate suggests switching to ==. What do you do instead?
About
Five scenario questions on let, const, data types and equality. If you miss more than one, reread the lesson that covers it.
- Duration
- 5 min
- Last update
- 08/30/2026
Was this helpful?
0
0
Comments (0)
Sign in to commentNo comments yet.