const year = 2024; const isLeapYear = (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0; console.log(isLeapYear); // true