Medium
What is the most efficient way to find the largest number in an array?
1const numbers = [5, 2, 8, 1, 9];23// Find the largest number4const max = // Your implementation here5console.log(max);
1const numbers = [5, 2, 8, 1, 9];23// Find the largest number4const max = // Your implementation here5console.log(max);