odin-javascript-exercises/leapYears/leapYears.js

6 lines
129 B
JavaScript
Raw Normal View History

2017-12-14 13:35:45 -08:00
var leapYears = function(year) {
return year % 4 === 0 && ( year % 100 !== 0 || year % 400 == 0)
2017-08-25 11:47:05 -07:00
}
module.exports = leapYears