Which is the correct JavaScript statement to print the addition of two numbers 10 and 20 in a paragraph whose id is 'result'?
Options:
Explanation:
The correct JavaScript statement to print the addition of two numbers 10 and 2o in a paragraph whose id is "result" is:
Tags:
JavaScript
Answer:
Which is the correct JavaScript statement to print the addition of two numbers 10 and 20 in a paragraph whose id is 'result' getElementById("result").innerHTML = 10+20;.