Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

The Date.isLeapYear() API determines if the specified year is a leap year.

Parameters

  1. Year

Return Value

Boolean value of true if leap year; otherwise a Boolean value of false is returned.

Example
console.log(Date.isLeapYear(2017));  // outputs false
  • No labels