Object-Oriented Programming · C3.ai · Medium
This task has two parts, and you complete them one after the other. Part 1. Build your own version of the array reduce method from scratch, so that it behaves like the built-in one. Part 2. Build a timer that runs repeatedly. Calling it should start the repeating behavior and return a function; invoking that returned function cancels the timer.