PdfPrep.com

You need to insert the correct code at Line 9. Which line should you use?

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?
A . document.getElementById("body").innerHTML = rooms[i] + line.innerHTML;
B . document.getElementById("para").innerHTML += rooms[i] + line.innerHTML;
C . document.getElementById("para").innerHTML += i + rooms + line.innerHTML;
D . document.getElementById("body").innerHTML += rooms + i;

Answer: B

Exit mobile version