Skip to content

Commit e0d2e5a

Browse files
authored
Updated Syntax
1 parent 96ec303 commit e0d2e5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Timing-Functions/GetMonthDays.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const getMonthDays = (monthNumber, year) => {
2121
if (the30DaysMonths.includes(monthNumber)) { return 30 }
2222

2323
// Check for Leap year
24-
if (((year % 400) === 0)||(((year % 100) != 0) && ((year % 4) === 0))) { return 29 }
24+
if (((year % 400) === 0) || (((year % 100) !== 0) && ((year % 4) === 0))) { return 29 }
2525

2626
return 28
2727
}

0 commit comments

Comments
 (0)