Nesting for loops challenge issue

really need help. i dont even know where to start solving this challenge

  **Your code so far**

function multiplyAll(arr) {
let product = 1;
// Only change code below this line

// Only change code above this line
return product;

multiplyAll([[1, 2], [3, 4], [5, 6, 7]]);
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0

Challenge: Nesting For Loops

Link to the challenge:

you need to make two loops, one inside the other(nested), in order to easily loop throught all elements in the array and its subarrays. A solid example is shown in the challenge description. The desired result, suggests to multiply all the numbers(their product). There is already a variable named product, which you can use to store that value and just gradually multiply it with every number.
[[1, 2], [3, 4], [5, 6, 7]]
(1 x 2) x (3 x 4) x (5 x 6 x 7)
2 x 12 x 210

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.