i keep getting the test tips
5. With 2024 as the value of the year variable, the result should be 2024 is a leap year.
6. With 2000 as the value of the year variable, the result should be 2000 is a leap year.
7. With 1900 as the value of the year variable, the result should be 1900 is not a leap year.
11. You should output the result to the console using console.log().
// tests completed
// console output
2000 is a leap year.
with this code
let year = 2000;
function isLeapYear(year) {
if (year % 400 === 0) {
return true; //Divisible by 400 -> Leap Year
} else if(year % 100 === 0) {
return false; // Divisible by 100 but not 400 -> not Leap
} else if(year % 4 === 0) {
return true; //Divisible by 4 but not 100 -> Leap Year
} else {
return false;
}
}
let result = isLeapYear(year);
let message = year + (result ? " is a leap year." : " is not a leap year.");
console.log(message);
I have seen some explanation but still dong get the logic.
any help
Hi @footroot 
Next time you need help on a specific challenge, please use the Help button located at the bottom of your page.

This way it is easier for everyone to understand your problem (it automatically sends your codes and provide a link).
If you can’t do this, please provide a link to the challenge, so that we can test by ourselves what’s wrong with your code. Thank you !
I found the link (tell me if it is the good one):
So basically, you are told that :
A leap year is a year that is divisible by 4, except for years that are divisible by 100 and not divisible by 400.
I will write it in pseudo code :
year = 2000
isLeapYear = False
IF year % 4 ==0 :
EXCEPT year % 100 == 0 AND NOT year % 400 == 0 //This except blocks the execution if it is false
isLeapYear = true
This is pseudo code, which means not real code, but it is here to make the logic clearer.
Hope this helped you, enjoy coding 
The issue is that we’re having the correct output shown, but we still can’t advance.