Skip to content

Latest commit

 

History

History
9 lines (3 loc) · 182 Bytes

File metadata and controls

9 lines (3 loc) · 182 Bytes

Problem 67:

Write a JavaScript program to find the most frequent element in an array and return it.

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