The Date.isLeapYear() API determines if the specified year is leap year.
Parameters
- Year
Return Value
Boolean value of true if leap year; otherwise a Boolean value of false is returned.
Example
console.log(Date.isLeapYear(2017)); // output is: false
The Date.isLeapYear() API determines if the specified year is leap year.
Parameters
Return Value
Boolean value of true if leap year; otherwise a Boolean value of false is returned.
console.log(Date.isLeapYear(2017)); // output is: false