Basic Algorithm Scripting - Return Largest Numbers in Arrays

TypeError: Cannot read properties of undefined (reading ‘length’) please help

  **Your code so far**
function largestOfFour(arr) {
let max = 0;
for(let i = 0; i < arr.length; i++){
  for (let j = 0; j < arr[i].length; i++){
        if(arr[i][j] > max){
          max = arr[i][j];
          console.log(max);
        }
  }
}
return arr;
}

largestOfFour([[4, 5, 1, 3], [13, 27, 18, 26], [32, 35, 37, 39], [1000, 1001, 857, 1]]);
  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36

Challenge: Basic Algorithm Scripting - Return Largest Numbers in Arrays

Link to the challenge:

You have a typo in your incrementing portion of the loop head here.