Web technologies Questions | JavaScript Course Quiz 1 | Question 10

Last Updated :
Discuss
Comments
What is the correct JavaScript syntax to change the content of the HTML element below? Javascript
<p id="demo">May the code be with you.</p>
document.getElementById("demo").innerHTML = "Hola!";
document.getElement("p").innerHTML = "Hola!";
#demo.innerHTML = "Hola!";
document.getElementByName("p").innerHTML = "Hola!";
Share your thoughts in the comments