Last active
June 9, 2021 12:46
-
-
Save bitsmanent/1506947d044b737713e885ea2de8edca to your computer and use it in GitHub Desktop.
Check if the given number is a leap year
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 isleap(year) { | |
return !(year % 4) && ((year % 100) || !(year % 400)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment