Dear Members,

Please check my code is not running.

function largestOfFour(arr) {

let result = 0;

let maxLength = 0;

for (let i = 0 ; i<arr.length ; i++)

{

for(let j = 0 ; j < arr[i].length ; j++)

{

if (arr[i][j] > maxLength ){

result = arr[i][j];

}

}

}

return result;

}

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