I know its not the most efficient way but this is what i came up with i also found this site helpful https://gist.github.com/ourmaninamsterdam/1be9a5590c9cf4a0ab42#user-content-clone-an-array

i could have looped through instead. but i need more explanation on how i would loop. thats something i need to work on. i appreciate any feed back.

here is my code

function largestOfFour(arr) {

var indZer = arr[0].sort(function(a,b){

return b-a;

});

var indOne = arr[1].sort(function(a,b){

return b-a;

});

var indTwo = arr[2].sort(function(a,b){

return b-a;

});

var indThree = arr[3].sort(function(a,b){

return b-a;

});

var finalArr = [indZer[0], indOne[0], indTwo[0], indThree[0]];

return finalArr;

}

largestOfFour([[4, 5, 1, 3], [13, 27, 18, 26], [32, 35, 37, 39], [1000, 1001, 857, 1]]);

final answer [5,27,39,1001]