From the output of [checkWordOccurrence](https://github.com/TheAlgorithms/Javascript/blob/master/String/CheckWordOccurrence.js), we could see it's should be "**Letter**" occurrence instead of "**Word**". [Test Case](https://github.com/TheAlgorithms/Javascript/blob/master/String/test/CheckWordOcurrence.test.js)
Activity
raklaptudirm commentedon Mar 1, 2022
I believe the function needs to be fixed.
[-]WordOccurrence should be named LetterOccurrence[/-][+]fix `WordOccurrence` algorithm[/+]fahimfaisaal commentedon Mar 1, 2022
Yep, me too. Please let me handle this. 🙂