Files

20 lines
371 B
JavaScript
Raw Permalink Normal View History

2025-02-22 10:46:02 +09:00
const leapYears = function(year) {
if (year%4 === 0 ) {
if (year % 100 === 0) {
if (year % 400 === 0) {
return true;
}
else {
return false
}
}
return true;
}
else {
return false
}
2021-03-03 15:13:24 +13:00
};
2017-08-25 13:47:05 -05:00
// Do not edit below this line
2021-03-03 15:13:24 +13:00
module.exports = leapYears;