odin-js-fundamentals-part-5/10_fibonacci
NetMan 7c157bdc29 Added 2 tests, fixed first numbers and passed them in exercise 10 2024-01-11 21:37:42 +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 Added 2 tests, fixed first numbers and passed them in exercise 10 2024-01-11 21:37:42 +01:00
fibonacci.spec.js Added 2 tests, fixed first numbers and passed them in exercise 10 2024-01-11 21:37:42 +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