Kizspy Question: 17
(Choose 1 answer)
ruevszLOW.COM
Consider the code:
<script>
function myFunction(a, b) {
return a + b;
</script>
<body>
<p id="demo"></p>
</body>
What code is the right statement to assign the sum of two integers 4,3 to the p tag at the row
[MISSINGCODE]?
A. document.getElementById("demo").innerHTML=myFuntion(4,3);
B. <p onclick="myFunction(4,3)"></p>
C. document.getElementById("demo").innerHTML="4"+ "3";
D. document.getElementById("demo").innerHTML= myFuntion("4","3");