Continuing the discussion from freeCodeCamp Algorithm Challenge Guide: Return largest Numbers in Arrays:

I simplified it a little

function largestOfFour(arr) {

// You can do this!

var max=[];

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

{

max[i]=arr[i][0];

```
for(var j= 0; j<arr[i].length;j++){
if(arr[i][j]>max[i]){
max[i]=arr[i][j];
}//if
} //for
}//for
return max;
```

} //function