Created
January 19, 2015 21:43
-
-
Save jmurowaniecki/f0d17cf73708637ff05c to your computer and use it in GitHub Desktop.
Verifica se o ano informado é bissexto
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 isBissextile(n) { return n % 4 === 0 && (n % 400 === 0 || n % 100 !== 0) ? true : false; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment