Write a function that returns the factors of a positive integer.
These factors are the positive integers by which the number being factored can be divided to yield a positive integer result.
///factors is a function.
testString: assert(typeof factors === 'function', 'factors is a function.');
- text: factors(45) should return [1,3,5,9,15,45].
testString: assert.deepEqual(factors(45), ans[0], 'factors(45) should return [1,3,5,9,15,45].');
- text: factors(53) should return [1,53].
testString: assert.deepEqual(factors(53), ans[1], 'factors(53) should return [1,53].');
- text: factors(64) should return [1,2,4,8,16,32,64].
testString: assert.deepEqual(factors(64), ans[2], 'factors(64) should return [1,2,4,8,16,32,64].');
```