Return Largest Numbers in Arrays -- HELLLLPP

Tell us what’s happening:
I’m not sure where to start on this problem, not sure if I should go back and do the first module in the Javascript course to refresh my mind of all the functions, any recommendations?

Your code so far

function largestOfFour(arr) {
  // You can do this!
  return arr;

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 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36.

Link to the challenge:


Do you know how to iterate / loop through an array?

What might you do if each item in an array were an array also?

1 Like