Tell us what’s happening:
I’m quite stumped here as to what to do, i can’t get stepts 5,6 and 7 to clear no matter what I try. What is wrong with my code?
Your code so far
let year = 1900;
function isLeapYear(year) {
if (year % 4 === 0) {
return "[isLeapYear] is a leap year."
}
else {
return "[isLeapYear] is not a leap year."
}
}
const result = isLeapYear(year)
console.log(result);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Safari/537.36 OPR/134.0.0.0 (Edition std-1)
Challenge Information:
Build a Leap Year Calculator - Build a Leap Year Calculator