8000 Fix README.md Fibonacci series example · MysticRiver/javascript-exercises@c77daf3 · GitHub
[go: up one dir, main page]

Skip to content

Commit c77daf3

Browse files
committed
Fix README.md Fibonacci series example
1 parent 61c86e1 commit c77daf3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

10_fibonacci/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
Create a function that returns a specific member of the Fibonacci sequence:
44

5-
> A series of numbers in which each number ( Fibonacci number ) is the sum of the two preceding numbers. The simplest is the series 1, 1, 2, 3, 5, 8, etc.
5+
> A series of numbers in which each number ( Fibonacci number ) is the sum of the two preceding numbers. The simplest is the series 0, 1, 1, 2, 3, 5, 8, etc.
6 574E 6
77
```javascript
8-
fibonacci(4) // returns the 4th member of the series: 3 (1, 1, 2, 3)
9-
fibonacci(6) // returns 8
8+
fibonacci(4); // returns the 4th member of the series: 3 (1, 1, 2, 3)
9+
fibonacci(6); // returns 8
1010
```

0 commit comments

Comments
 (0)
0