js leap year calculator
// https://www.mathsisfun.com/leap-years.html
function isLeapYear(year) {
if(year % 400 === 0){
return ("yes");
} if(year % 100 === 0){
return ("no");
} if (year % 4 === 0){
return ("yes");
} else {
return ("no");
}
}
isLeap(2024);