odin-default-js-exercises/leapYears/leapYears.js

6 lines
134 B
JavaScript
Raw Permalink Normal View History

const leapYears = function(year) {
return year % 4 === 0 && ( year % 100 !== 0 || year % 400 === 0)
};
2017-08-25 18:47:05 +00:00
module.exports = leapYears;