Created
February 3, 2019 21:34
-
-
Save PierraKimathi-zz/8ebdf4589d838d19f49176622f921c6f to your computer and use it in GitHub Desktop.
Determining if year is leap or not
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function isLeapYear(year) { | |
return ((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment