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, not a method. The correct syntax is document.getElementById('trial').innerHTML = 'value' without parentheses. Adding () as if calling a function causes a JavaScript error.