added answers

This commit is contained in:
Jared Ramon Elizan 2022-07-16 09:47:43 +08:00
parent 367e9405dd
commit d74e245a9d
1 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,9 @@
const leapYears = function() { const leapYears = function(year) {
if(year % 4 === 0 && year % 100 !== 0 || year % 400 === 0){
return true;
} else{
return false;
}
}; };
// Do not edit below this line // Do not edit below this line