--- title: Averages-Mode id: 594d8d0ab97724821379b1e6 challengeType: 5 videoUrl: '' localeTitle: '' --- ## Description undefined ## Instructions undefined ## Tests
```yml tests: - text: '' testString: 'assert(typeof mode === "function", "mode is a function.");' - text: '' testString: 'assert.deepEqual(mode(arr1), [6], "mode([1, 3, 6, 6, 6, 6, 7, 7, 12, 12, 17]) should equal [6]");' - text: '' testString: 'assert.deepEqual(mode(arr2).sort(), [1, 4], "mode([1, 2, 4, 4, 1]) should equal [1, 4].");' ```
## Challenge Seed
```js function mode (arr) { // Good luck! return true; } ```
### After Test
```js console.info('after the test'); ```
## Solution
```js // solution required ```