The Odin Project - Recursive Function Exercise
Use the console to see and test out these recursive functions.
- collatz(number) - runs the Collatz algorithm on `number`
- sumRange(number) - sums all numbers below and including `number`
- power(numberA, numberB) - raises `numberA` to the power of `numberB`
- fact(number) - returns the factorial of `number`
- all(array, func) - returns true if all elements of `array` pass the boolean test in `func`
- productOfArray(array) - returns the product of all numbers in the array
- contains_1(obj, val) - returns true if the object (including nested objects) contains `val`
- contains_2(obg, val) - same as above via different method
- fib(places) - returns an array of the fibonacci sequence of a length `places`
- fibRec(places) - same as above but recurisvely
- mergeSort(array) - recursively runs a Merge Sort on a given `array` of numbers