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