Online Coding Lessons Practice Test
JavaScript Coding for Kids
What is the correct JavaScript syntax for modifying the HTML element below?
Select your answer
A
document.getElement("p").inner= "Hello World!;
B
#demo.innerHTML = "Hello World!";
C
document.getElementByName('= "Hello World!";
D
document.getElementById("demo").innerHTML = "Hello World!";
Hint