---
title: Fibonacci sequence
id: 597f24c1dda4e70f53c79c81
challengeType: 5
videoUrl: ''
localeTitle: ''
---

## Description
undefined

## Instructions
undefined

## Tests
<section id='tests'>

```yml
tests:
  - text: ''
    testString: 'assert(typeof fibonacci === "function", "<code>fibonacci</code> is a function.");'
  - text: ''
    testString: 'assert(typeof fibonacci(2) == "number", "<code>fibonacci(2)</code> should return a number.");'
  - text: ''
    testString: 'assert.equal(fibonacci(3),1,"<code>fibonacci(3)</code> should return 1.");'
  - text: ''
    testString: 'assert.equal(fibonacci(5),3,"<code>fibonacci(5)</code> should return 3.");'
  - text: ''
    testString: 'assert.equal(fibonacci(10),34,"<code>fibonacci(10)</code> should return 34.");'

```

</section>

## Challenge Seed
<section id='challengeSeed'>

<div id='js-seed'>

```js
function fibonacci(n) {
  // Good luck!
}

```

</div>



</section>

## Solution
<section id='solution'>

```js
// solution required
```
</section>
