Skip to content

Commit

Permalink
Make function cleaner
Browse files Browse the repository at this point in the history
  • Loading branch information
worriedape committed Dec 10, 2024
1 parent a4c362d commit add51c5
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions 06_leapYears/leapYears.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
const leapYears = function(year) {

if ((year % 4 === 0 && year % 100 !== 0) || year % 400 === 0) {
return true;
}
return false;

const leapYears = function (year) {
if ((year % 4 === 0 && year % 100 !== 0) || year % 400 === 0) {
return true;
}
return false;
};

// Do not edit below this line
Expand Down

0 comments on commit add51c5

Please sign in to comment.