Max Array Value
You need to find the largest value contained in an array.
Alternatively, it's possible to use ES5
Math.max compares every argument and returns the largest number from arguments. The ellipsis (
...) converts every array value into argument which is given to the function. You can also use it with other functions which take variable amount of arguments, such as