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 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
Get step-by-step solutions from verified subject matter experts
