added answers
This commit is contained in:
parent
367e9405dd
commit
d74e245a9d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue