Generate Random Whole Numbers within a Range

This their setup
function multiplyAll(arr) {
var product = 1;
// Only change code below this line

// Only change code above this line
return product;
}

// Modify values below to test your code
multiplyAll([[1,2],[3,4],[5,6,7]]);
This is what they wANT

multiplyAll([[1],[2],[3]]); should return 6
multiplyAll([[1,2],[3,4],[5,6,7]]) should return 5040
multiplyAll([[5,1],[0.2, 4, 0.5],[3, 9]]):wink: should return 54

please could you send me a link to the task or the full description from the site? it seems the dedcription you provided is not full. it’s confusing - why last sequence returns 54 instead of 135☺

This is the link

Are you sure? That doesn’t look at all like the problem you’re describing.

1 Like