Q. What is the code to start displaying the time when document loads?
β
Correct Answer: (C)
window.onload = displayTime;
Explanation: The above code starts displaying the time when the document loads.