Im so sorry, that was a big wrong. First time i think that should be take the sub-array who contain a big number, but the real think is take every sub-sub-array who contain big number.
I completed, but i have a question. Here my code :
function largestOfFour(arr) {
let result = [-99999,-99999,-99999,-99999];
for (let i = 0; i < arr.length; i++){
for (let j = 0; j < arr[i].length; j++){
if (arr[i][j] > result[i]){
result[i] = arr[i][j];
}
}
}
return result;
}
My question is : if i want make my initial result more dynamic (i mean without set the value) how to do that? What should i read about that?