CertyRush
Đang tải...
C CertyRush
Câu hỏi free preview

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?

Minh họa câu hỏi

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.

  1. A. document.getElementById("body").innerHTML = rooms[i] + line.innerHTML;
  2. B. document.getElementById("para").innerHTML += rooms[i] + line.innerHTML; — đáp án hiện tại
  3. C. document.getElementById("para").innerHTML += i + rooms + line.innerHTML;
  4. 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.

Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.

Câu hỏi liền kề