PdfPrep.com

Which code segment should you use at line 08?

You are designing a web page with a script that must dynamically change the content of a paragraph element to display the value returned by the function randomQuote().

You have created the following code. Line numbers are included for reference only.

Which code segment should you use at line 08?
A . document.getElementById("tester").value = randomQuote();
B . document.getElementById("tester").title = randomQuote();
C . document.getElementById("tester").innerHTML = randomQuote();
D . document.getElementById("tester").script = randomQuote();

Answer: C

Explanation:

Explanation: https://www.w3schools.com/html/html_scripts.asp

Exit mobile version