Q. What is the code for getting the current time?
β
Correct Answer: (B)
var now = new Date();
Explanation: The above code determines the current time and stores it in the variable “now”.