πŸ“Š JavaScript
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;
πŸ’¬ Discuss
βœ… Correct Answer: (C) window.onload = displayTime;

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

Explanation by: Mr. Dubey
The above code starts displaying the time when the document loads.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
139
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
89%
Success Rate