Find the Maximum
Easy · javascript · javascript · arrays
Write solution(nums) that returns the largest number in a non-empty array.
Sample tests
solution([1, 5, 2]) // => 5
Easy · javascript · javascript · arrays
Write solution(nums) that returns the largest number in a non-empty array.
Sample tests
solution([1, 5, 2]) // => 5