📅  最后修改于: 2022-03-11 15:01:47.943000             🧑  作者: Mango
const leapYear = (year) => {
if (year % 4 === 0 || year % 400 === 0 && year % 100 !== 0) {
return `${year } : is a leap year`
} else {
return `${year} : is not a leap year`
}
}