[SOLVED] Nesting For Loops: arr[i] is undefined?

Tell us what’s happening:

Your code so far

function multiplyAll(arr) {
  var product = 1;
  // Only change code below this line
  for(var i = 0; i <arr.length; i++){
    for(var j = 0; j < arr[i].length; i++){
      product *= arr[i][j];
  // Only change code above this line
  return product;

// Modify values below to test your code

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:57.0) Gecko/20100101 Firefox/57.0.

Link to the challenge:

1 Like

Hi @abdulrahmanmokhlef

You may want to look at what variables your incrementing in each for loop =)

1 Like

Hi @joesmith100
Thank you I missed it :]