JavaScript quiz
Ace your homework & exams now with Quizwiz!
2. What is the correct JavaScript syntax to change the content of the HTML element below? <p id="demo">This is a demonstration.</p>
document.getElementById("demo").innerHTML = "Hello World!";