odin-js-fundamentals-part-5/10_fibonacci
NetMan fe94193f97 Passed all remaining tests in exercise 10 2024-01-11 21:39:33 +01:00
..
solution Initial commit 2024-01-11 09:52:05 +01:00
README.md Initial commit 2024-01-11 09:52:05 +01:00
fibonacci.js Passed tests 8 and 9 from exercise 10 2024-01-11 21:39:13 +01:00
fibonacci.spec.js Passed all remaining tests in exercise 10 2024-01-11 21:39:33 +01:00

README.md

Exercise 10 - Fibonacci

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

A series of numbers in which each number ( Fibonacci number ) is the sum of the two preceding numbers. In this exercise, the Fibonacci sequence used is 1, 1, 2, 3, 5, 8, etc. To learn more about Fibonacci sequences, go to: https://en.wikipedia.org/wiki/Fibonacci_sequence

fibonacci(4); // returns the 4th member of the series: 3  (1, 1, 2, 3)
fibonacci(6); // returns 8