Multiple choice technology programming languages

document.getElementById("trial").innerHTML() is a valid statement

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

innerHTML is a property of DOM elements, not a method. It should be accessed as document.getElementById('trial').innerHTML (without parentheses), not innerHTML(). The parentheses would attempt to call it as a function, which is incorrect syntax.