Course · Section 11: Working With Arrays · Lecture 149: Simple Array Methods
Implement `findMax(arr)` returning the largest number in a non-empty array.
+ 1 hidden test run on Submit.
Spreading the array into Math.max returns the largest element.
Run your code to see results.