WED201c_-_SP_2025_-_FE_3759.webp
M

WED201c_-_SP_2025_-_FE_3759.webp

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");

Thông tin

Category
WED201c
Thêm bởi
minhduc94
Ngày thêm
Lượt xem
4,524
Lượt bình luận
9
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom