Here is my solution but not working in freeCodeCamp editor

Tell us what’s happening:
here is my solution it is working properly everywhere except freeCodeCamp editor
Your code so far


function largestOfFour(arr) {
let large = [];
large.push(arr.map(element => Math.max(...element)));
return large;
}

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

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.190 Safari/537.36.

Challenge: Return Largest Numbers in Arrays

Link to the challenge:

I think that you have an extra level of nesting inside your output array.

2 Likes

Right brother thanks, buddy…:relaxed:

1 Like