Câu 1: 98-382: Introduction to Programming Using JavaScript
You are writing a JavaScript program for Contoso Suites that will output HTML. You need to output each room type on a new line using the correct method. You create the following code for the function. Line numbers are included for reference only. You need to insert the correct code at Line 9. Which line should you use?
Nội dung câu hỏi
You are writing a JavaScript program for Contoso Suites that will output HTML. You need to output each room type on a new line using the correct method. You create the following code for the function. Line numbers are included for reference only. You need to insert the correct code at Line 9. Which line should you use?
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. document.getElementById("body").innerHTML = rooms[i] + line.innerHTML;
- B. document.getElementById("para").innerHTML += rooms[i] + line.innerHTML; — đáp án hiện tại
- C. document.getElementById("para").innerHTML += i + rooms + line.innerHTML;
- D. document.getElementById("body").innerHTML += rooms + i;
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.