Write a javascript program that works out if a given year is a leap year code example
Example: how to check leap year in javascript
function isLeapYear(year) {
if (year % 400 === 0) return true;
if (year % 100 === 0) return false;
return year % 4 === 0;
}