recursiveRange
Write a function called recursiveRange
which takes in an array of numbers and returns the product of them all.
Solution:
// SAMPLE INPUT/OUTPUT
// recursiveRange(6) // 21
// recursiveRange(10) // 55
function recursiveRange(arr) {}
Write a function called recursiveRange
which takes in an array of numbers and returns the product of them all.
// SAMPLE INPUT/OUTPUT
// recursiveRange(6) // 21
// recursiveRange(10) // 55
function recursiveRange(arr) {}