--- title: Accumulator factory id: 594810f028c0303b75339ace challengeType: 5 videoUrl: '' localeTitle: '' --- ## Description undefined ## Instructions undefined ## Tests
```yml tests: - text: '' testString: 'assert(typeof accumulator === "function", "accumulator is a function.");' - text: '' testString: 'assert(typeof accumulator(0) === "function", "accumulator(0) should return a function.");' - text: '' testString: 'assert(typeof accumulator(0)(2) === "number", "accumulator(0)(2) should return a number.");' - text: '' testString: 'assert(testFn(5) === 5.5, "Passing in the values 3, -4, 1.5, and 5 should return 5.5.");' ```
## Challenge Seed
```js function accumulator (sum) { // Good luck! } ```
### After Test
```js console.info('after the test'); ```
## Solution
```js // solution required ```