Courses
JavaScript for Beginners: Make a Web Page Actually Do Something
Check Yourself: Organizing Your Code
Five scenario questions on functions, arrow functions, arrays and objects. 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.
const total = showTotal(250, 3); prints 750 in the console, but total is undefined. Why?
2.
const double = x => { x * 2 }; double(4) gives undefined. What's the fix?
3.
You wrote button.addEventListener("click", save()); and the button does nothing. What would a function lesson tell you?
4.
cart.find(item => item.name === "Tea").price crashes when tea isn't in the cart. Why?
5.
You did const backup = cart; then backup.push("sugar"). Now cart has sugar too. Why?
About
Five scenario questions on functions, arrow functions, arrays and objects. If you miss more than one, reread the lesson that covers it.
- Duration
- 5 min
- Last update
- 08/27/2026
Was this helpful?
0
0
Comments (0)
Sign in to commentNo comments yet.