Question: 1. Comment each line of this HTML/JavaScript code to describe what it is doing. 2. Sketch a picture of the webpage before the button

 1. Comment each line of this HTML/JavaScript code to describe what it   

1. Comment each line of this HTML/JavaScript code to describe what it is doing. 2. Sketch a picture of the webpage before the button is clicked. 3. Sketch a picture of the web page after the button is clicked. Change Text function changeText(){ } var element = document.getElementById("line1"); element.innerHTML = "Hello"; element = document.getElementById("line2"); element.innerHTML = "World!";

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!