arr one at a time. Note that for the inner loop, we are checking the .length of arr[i], since arr[i] is itself an array.
multiplyAll so that it returns the product of all the numbers in the sub-arrays of arr.
multiplyAll([[1],[2],[3]]) should return 6
testString: assert(multiplyAll([[1],[2],[3]]) === 6);
- text: multiplyAll([[1,2],[3,4],[5,6,7]]) should return 5040
testString: assert(multiplyAll([[1,2],[3,4],[5,6,7]]) === 5040);
- text: multiplyAll([[5,1],[0.2, 4, 0.5],[3, 9]]) should return 54
testString: assert(multiplyAll([[5,1],[0.2, 4, 0.5],[3, 9]]) === 54);
```