Build a Leap Year Calculator - Build a Leap Year Calculator

Tell us what’s happening:

I don’t understand what’s wrong in the code, I can see the correct output on the right hand side console.
But on left the Tests cases are not fulfilled somehow.

Your code so far

const isLeapYear = (num) =>{
  if ((year % 4 === 0 && year % 100 !== 0) || (year % 400 === 0)) 
    return `${year} is a leap year.`
    else
    return `${year} is not a leap year.`
}
let year=2024;
let result = isLeapYear(year);
console.log(result);

year=2000;
result = isLeapYear(year);
console.log(result);


year=1900;
result = isLeapYear(year);
console.log(result);

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64; rv:146.0) Gecko/20100101 Firefox/146.0

Challenge Information:

Build a Leap Year Calculator - Build a Leap Year Calculator

you have given a parameter of num to the function, what are you using it for?
does your function manage to give different output for different inputs?