For example :
We have an array of few reapeted words.
I managed to count the most “popular word” in the array but cannot understand how to make it print the most popular word with specific length .
const arr = ['a','hello,'a','hello','hello']
Trying to get to this result :
if ill searching for length of 5. I wanna print " hello reapeted 3 times"
If ill searching for length of 1 i wanna print " a reapeted 2 times" …