📜  闰年 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:47.943000             🧑  作者: Mango

代码示例3
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`
    }
}