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!";
This question is part of this quiz :
JavaScript Course | Practice Quiz-1