--- title: Factors of an integer id: 597f1e7fbc206f0e9ba95dc4 challengeType: 5 videoUrl: '' localeTitle: '' --- ## Description undefined ## Instructions undefined ## Tests
```yml tests: - text: '' testString: 'assert(typeof factors === "function", "factors is a function.");' - text: '' testString: 'assert.deepEqual(factors(45), ans[0], "factors(45) should return [1,3,5,9,15,45].");' - text: '' testString: 'assert.deepEqual(factors(53), ans[1], "factors(53) should return [1,53].");' - text: '' testString: 'assert.deepEqual(factors(64), ans[2], "factors(64) should return [1,2,4,8,16,32,64].");' ```
## Challenge Seed
```js function factors (num) { // Good luck! } ```
### After Test
```js console.info('after the test'); ```
## Solution
```js // solution required ```