Courses
JavaScript for Beginners: Make a Web Page Actually Do Something
Check Yourself: Making Decisions and Repeating Work
Five scenario questions on if, the ternary and loops. If you miss more than one, go back to the two lessons before moving on.
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.
Shipping is free from 1,000, 50 from 500, else 120. Your chain checks total >= 500 first, then total >= 1000. What happens to a 1,250 order?
2.
Which is the best use of the ternary operator?
3.
Your loop for (let i = 0; i <= items.length; i++) prints an extra undefined at the end. Why?
4.
Your while loop freezes the browser tab. What is the most likely cause?
5.
You want the total of all prices in an array, and you don't need positions. Which loop fits best?
About
Five scenario questions on if, the ternary and loops. If you miss more than one, go back to the two lessons before moving on.
- Duration
- 5 min
- Last update
- 08/30/2026
Was this helpful?
0
0
Comments (0)
Sign in to commentNo comments yet.