📜  闰年公式 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:46.332000             🧑  作者: Mango

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