JAVASCRIPT   61

is leap year

Guest on 1st May 2022 04:41:09 PM

  1. export function isLeapYear(year) {
  2.     return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
  3. }

Raw Paste


Login or Register to edit or fork this paste. It's free.