A

Admin • 802.91K Points
Coach

Q. Which is the correct JavaScript statement to print the addition of two numbers 10 and 2o in a paragraph whose id is "result"?

  • (A) getElementById("result").innerHTML = 10+20;
  • (B) getElementById("result").innerHTML = "10+20";
  • (C) getElementById("#result").innerHTML = 10+20;
  • (D) All of the above
  • Correct Answer - Option(A)
  • Views: 6
  • Filed under category JavaScript
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.