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