📅  最后修改于: 2022-03-11 14:54:46.332000             🧑  作者: 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`
}
}