Return largest numbers in an array

Return largest numbers in an array
0

#1

Any idea why this isn’t working?

function largestOfFour(arr) {
 var newArray=[];
    for (var i=0;i<arr.length;i++){
      var maxNum=0;
      for (var j=0;j<arr[i].length;j++){
      }      if (arr[i][j]>maxNum) {
        maxNum=arr[i][j];
      }
   newArray[i]=maxNum;
    }
    
      
  return newArray;