r/programmingchallenges • • Jul 27 '19

An Javascript array challenge

Im having struggles with the problems on codecademy's project: Minilinter The problem is: Given an array of strings, find the word that appears the greatest number of times

0 Upvotes

7 comments sorted by

View all comments

Show parent comment

2

u/CoqeCas3 Jul 28 '19

If you’ve already figured this out, then I submit a hi-5! However, regardless if you have or haven’t, I challenge you to figure this out using ‘.reduce()’ 😉