What is the correct JavaScript syntax to change the content of the HTML element below?

B) document.getElementById('demo').innerHTML = 'Hello World!';

document.getElement and document.getElementByName functions do not exist.

#demo.innerHTML is not a valid JavaScript syntax.