Infinite loop issue

Tell us what’s happening:
Describe your issue in detail here.
hey can anyone explain to me what I’ve done wrong here? I’m currently experiencing an infinite loop warning but I’m unsure how to fix the problem?

  **Your code so far**
function multiplyAll(arr) {
let product = 1;
// Only change code below this line
for (let i=0; i < arr.length; i++) {
  for (let j=0; i < arr[i].length; j++) {
    product *= arr[i][j];
  }
}
console.log(product)

// 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:101.0) Gecko/20100101 Firefox/101.0

Challenge: Nesting For Loops

Link to the challenge:

Small typo here

1 Like

thank you, feel like answers like these are getting quite common for me lol

Extra eyes are helpful in caching little things like that. That’s what we’re here for!

2 Likes