Created
June 28, 2023 06:51
-
-
Save tury3001/57c3bbf4e6e2899ae733fbe1ec8fdb70 to your computer and use it in GitHub Desktop.
Leap year
This file contains 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