Set value to the largest value in arr or to null if the array is empty.

javascript programming
exercise: arrays 02