Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 341 Bytes

README.md

File metadata and controls

15 lines (10 loc) · 341 Bytes

Find second largest number

Your Task 📚:

Create a function called secondLargest that takes an array of numbers and returns the second largest number.

Examples 😃:
secondLargest([23, 66, 50, 12, 6]) ➞ 50
secondLargest([65, 34, 100, 22, 85]) ➞ 85
secondLargest([67, 22, 19, 12, 80]) ➞ 67

Good Luck 😀