Merge pull request #1 from poldi1405/main
added my leap year solution and allowed for more
This commit is contained in:
commit
53f937f6d2
2 changed files with 2 additions and 0 deletions
2
leap-year/leap.js
Normal file
2
leap-year/leap.js
Normal file
|
@ -0,0 +1,2 @@
|
|||
// not very clever, but still a valid solution
|
||||
function isLeapYear(a){return a%4!=0?false:a%400==0?true:a%100!=0?true:false;}
|
Reference in a new issue