How to create the leap year calculation with small piece line of code?

AccuLeap | CLI

This code shows when you entering the year in the function parameter it tells whether the year is leap or not which is divisible by 4 & 400 and every 100 years the yea is not considered as leap year

Source code

const print = (str) => console.log(str);

const isLeapYear = (year) => {
return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0 ? year + ’ Is a leap year.’ : year + ’ Is not leap year.’;
}
const year =[1900, 1945, 1994, 1996, 2000, 2003, 2004, 2100, 2200, 2400]
for(var r=0; r < year.length; r++) {
print(isLeapYear(year[r]));
}