A

Admin • 833K Points
Coach

Q. What is the code to start displaying the time when document loads?

  • (A) onload = displayTime;
  • (B) window. = displayTime;
  • (C) window.onload = displayTime;
  • (D) window.onload = start;
  • Correct Answer - Option(C)
  • Views: 20
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin

The above code starts displaying the time when the document loads.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.