Skip to content

Commit f6a2793

Browse files
authored
10_leapYears: Replace broken link (#595)
1 parent 4585052 commit f6a2793

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

10_leapYears/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@ Create a function that determines whether or not a given year is a leap year. Le
44

55
> Leap years are years divisible by four (like 1984 and 2004). However, years divisible by 100 are not leap years (such as 1800 and 1900) unless they are divisible by 400 (like 1600 and 2000, which were in fact leap years). (Yes, it's all pretty confusing)
66
>
7-
> -- <cite>[Learn to Program](https://pine.fm/LearnToProgram/chap_06.html) by Chris Pine</cite>
7+
> -- [Learn to Program](https://pine.fm/LearnToProgram/chap_06.html) by Chris Pine
88
99
```javascript
10-
leapYears(2000) // is a leap year: returns true
11-
leapYears(1985) // is not a leap year: returns false
10+
leapYears(2000); // is a leap year: returns true
11+
leapYears(1985); // is not a leap year: returns false
1212
```
13-
Still confused? Refer to <cite>[this breakdown](https://time-and-calendar.com/leap-years/#:~:text=How%20to%20Know%20if%20Certain%20Year%20is%20a%20Leap%20Year)<cite> with examples.
1413

14+
Still confused? Refer to this [leap year breakdown](https://www.calendar-12.com/leap_year) with examples.
1515

1616
## Hints
17+
1718
- use an `if` statement and `&&` to make sure all the conditions are met properly

0 commit comments

Comments
 (0)