$ git clone git@github.com:ga-wdi-exercises/fuzz-business.git
Write a function sumFizzBuzzFactors
that takes one argument, maximum
, which is an integer. The function should return the sum of the numbers in between 0 and maximum
that are divisible by 3 OR 5.
sumFizzBuzzFactors(11) // => 33
// 3 + 5 + 6 + 9 + 10 = 33
A test suite is included with this exercise and will automatically run each time you load index.html
in the browser.
- The only higher order function you're allowed to use is
.reduce
- Do this using recursion. No higher order functions allowed.