Can’t see what’s going wrong with this… it returns the correct numbers, can anyone help me out?

**Your code so far**

```
function largestOfFour(arr) {
var finalArr = [0,0,0,0];
var highest =0;
for(i=0; i<arr.length; i++){
for(j=0; j<arr[i][j]; j++){
if(arr[i][j]>=highest){
highest = arr[i][j];
finalArr[i] = highest;
}
}
}
return finalArr;
}
largestOfFour([[4, 5, 1, 3], [13, 27, 18, 26], [32, 35, 37, 39], [1000, 1001, 857, 1]]);
```

**Your browser information:**

Your Browser User Agent is: `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36`

.

**Link to the challenge:**

https://www.freecodecamp.org/challenges/return-largest-numbers-in-arrays