Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The Date.isLeapYear() method returns a boolean depending if the year in the date is a leap year or not.


Return Value

True if it is a leap year else false.

Example
Code Block
languagejavascript
Date.isLeapYear(2017);
//false