Merge pull request #1 from poldi1405/main

added my leap year solution and allowed for more
This commit is contained in:
Anthony Wang 2021-04-14 07:38:18 -05:00 committed by GitHub
commit 53f937f6d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

2
leap-year/leap.js Normal file
View 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;}