WED201c_-_FESP24_1867.webp
mynhan85

WED201c_-_FESP24_1867.webp

  • Media owner mynhan85
  • Ngày thêm
Bài viết gốc: Chủ đề 'WED201c - FESP24'
(Choose
1
answer)
<script>
Consider the code:
function myMethod(){
var arr=["apple","mango", "kiwi", "orchid"];
[MISSING CODE]
} </script>
<form>
<input type="text" id="demo">
<input type="button" value="getValue" onclick="myMethod()">
</form>
What code is added at [MISSING CODE] to set the text "mango" of the variable arr to the input tag with
id="demo"?
A. document.getElementById("demo").text=arr
B. document.getElementById("demo").value=arr[1]
C. document.getElementById("demo")=arr[1]
D. document.getElementById("demo").value=arr[2]


Q: 57

Thông tin

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

Image metadata

Filename
WED201c_-_FESP24_1867.webp
File size
235.7 KB
Dimensions
1920px x 892px

Share this media

Back
Bên trên Bottom