--- title: Farey sequence id: 59c3ec9f15068017c96eb8a3 challengeType: 5 videoUrl: '' localeTitle: '' --- ## Description undefined ## Instructions undefined ## Tests
```yml tests: - text: '' testString: 'assert(typeof farey === "function", "farey is a function.");' - text: '' testString: 'assert(Array.isArray(farey(3)), "farey(3) should return an array");' - text: '' testString: 'assert.deepEqual(farey(3), ["1/3","1/2","2/3"], "farey(3) should return ["1/3","1/2","2/3"]");' - text: '' testString: 'assert.deepEqual(farey(4), ["1/4","1/3","1/2","2/4","2/3","3/4"], "farey(4) should return ["1/4","1/3","1/2","2/4","2/3","3/4"]");' - text: '' testString: 'assert.deepEqual(farey(5), ["1/5","1/4","1/3","2/5","1/2","2/4","3/5","2/3","3/4","4/5"], "farey(5) should return ["1/5","1/4","1/3","2/5","1/2","2/4","3/5","2/3","3/4","4/5"]");' ```
## Challenge Seed
```js function farey (n) { // Good luck! } ```
## Solution
```js // solution required ```