JavaScript Date getSeconds()
JavaScript Date getSeconds()
The getSeconds() method is used to return the seconds of a date i.e, from 0 to 59.
Syntax:-
Its syntax is:- Date.getSeconds()
Return:-
Its return is:- number of seconds from 0 to 59