Q. What is the code for getting the current time?

  • (A) now = new Date();
  • (B) var now = new Date();
  • (C) var now = Date();
  • (D) var now = new Date(current);
πŸ’¬ Discuss
βœ… Correct Answer: (B) var now = new Date();
Explanation: The above code determines the current time and stores it in the variable “now”.
Explanation by: Mr. Dubey
The above code determines the current time and stores it in the variable “now”.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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