JavaScript Date.now()
JavaScript Date.now()
The Date.now() method is used to return the number of milliseconds since January 1, 1970. It is a static method of Date Object.
Syntax:-
Its syntax is:- Date.now()
Return:-
Its return is:- number of milliseconds from 1 January, 1970