logo
logo

Find Max

Find Max

Write a function that takes an array of numbers and returns the largest number in the array using a for loop. If the array is empty, return undefined.

Console
Submit
Solution
00:00