Check a year Leap Year or Not Logic: year%100 === 0 ? year%400 === 0 : year%4 === 0; live: https://jsmojnu.github.io/leapyear-check/