Quiz: Make the Page Talk Back
Practice using JavaScript to make a web page respond by changing text through element selection and manipulation. This quiz helps reinforce your understanding of how to make pages talk back before you move on to hands-on mini-projects using these skills.
We'll cover the following...
We'll cover the following...
...
Technical Quiz
1.
What does document.getElementById("title").innerText = "Hello!"; do?
A.
Finds an element with the class title and prints “Hello!”.
B.
Updates the inner text of the element with ID title to “Hello!”.
C.
Adds a new element to the page called Hello!.
D.
Shows a pop-up with the message “Hello!”.
1 / 4
...