odin-javascript-exercises/06_leapYears/leapYears.js

7 lines
163 B
JavaScript
Raw Normal View History

2023-06-19 23:19:55 +00:00
const leapYears = function (year) {
return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0
}
2017-08-25 18:47:05 +00:00
// Do not edit below this line
2023-06-19 23:19:55 +00:00
module.exports = leapYears