odin-javascript-exercises/leapYears/leapYears.js
2017-11-20 13:51:01 -06:00

8 lines
163 B
JavaScript

var leapYears = function(year) {
if (year % 4 !== 0 || (year % 100 == 0 && year % 400 != 0)) {
return false
}
return true
}
module.exports = leapYears