Courses
JavaScript for Beginners: Make a Web Page Actually Do Something
Check Yourself: Touching the Page
Five scenario questions on the DOM, events and console errors. If you miss more than one, go back to 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.
document.querySelector("#total") returns null. What do you check first?
2.
A visitor's comment is shown with element.innerHTML = comment. Why is that a problem?
3.
Your signup form reloads the page on submit and your message flashes and disappears. What's missing?
4.
The console says "Uncaught ReferenceError: totla is not defined" at script.js:14. What does that tell you?
5.
Nothing in your script runs at all, not even a console.log on line 1. What's the most likely cause?
About
Five scenario questions on the DOM, events and console errors. If you miss more than one, go back to the lesson that covers it.
- Duration
- 5 min
- Last update
- 08/21/2026
Was this helpful?
0
0
Comments (0)
Sign in to commentNo comments yet.