function largestOfFour(arr) {
// You can do this!
let newArr = [];
for(let i = 0;i<arr.length;i++){
// console.log(arr[i]);
//newArr.push(arr[i]);
let power = Math.max.apply(Math,arr[i]);
//console.log(power);
newArr.push(power);
}
console.log(newArr);
return arr;
}
console.log(largestOfFour([[4, 5, 1, 3], [13, 27, 18, 26], [32, 35, 37, 39], [1000, 1001, 857, 1]]));
Its working but not passing tests.