How to find the highest occuring word in an array of words [JavaScript]

Greetings everyone, presently on the iterators section of the javascript course. I tried completed the quiz and tried taking one of the challenges to further my skills, got stuck at trying to check the highest occurring word in an array

take for example this array, how will you check the highest occuring word?

const wordsArray = ['Hello', 'sir', 'Hello', 'madam', 'Hello', 'students', 'Hello', 'everyone' ]

Obviously it’s Hello. but in an array of a thousand words how can one easily know which word has the highest occurrence?

Please I will appreciate a beginner level breakdown, and explanation. Thank you!