BeginnerJavaScript

Find the largest number in an array

Write a function that finds the largest number in an array of numbers.

Examples

Input: [1, 3, 5, 2, 4]

Output: 5

Your Solution

Output

Click 'Run Code' to see the output