Build a function to find the maximum value in an array.
Difficulty: Easy
Hint: You could use a loop or JavaScript's Math.max method.
Time Left: 05:00