Q. Which is the correct JavaScript statement to print the addition of two numbers 10 and 2o in a paragraph whose id is "result"?
β
Correct Answer: (A)
getElementById("result").innerHTML = 10+20;