Examveda
Examveda

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);

Answer: Option B

Solution(By Examveda Team)

The above code determines the current time and stores it in the variable “now”.

Join The Discussion

Related Questions on Server Side and Client Side Scripting