0
Free MOCK
Apply Internship
Blog
Learning
Roadmap
Others
Login
Beginner
JavaScript
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
Show Solution
Reset
Output
Run Code
Click 'Run Code' to see the output