--- title: Fibonacci sequence id: 597f24c1dda4e70f53c79c81 challengeType: 5 videoUrl: '' localeTitle: '' --- ## Description undefined ## Instructions undefined ## Tests
```yml tests: - text: '' testString: 'assert(typeof fibonacci === "function", "fibonacci is a function.");' - text: '' testString: 'assert(typeof fibonacci(2) == "number", "fibonacci(2) should return a number.");' - text: '' testString: 'assert.equal(fibonacci(3),1,"fibonacci(3) should return 1.");' - text: '' testString: 'assert.equal(fibonacci(5),3,"fibonacci(5) should return 3.");' - text: '' testString: 'assert.equal(fibonacci(10),34,"fibonacci(10) should return 34.");' ```
## Challenge Seed
```js function fibonacci(n) { // Good luck! } ```
## Solution
```js // solution required ```