As a reference to this question the idea is same
Get all non-unique values (i.e.: duplicate/more than one occurrence) in an array
But
instead of deleting the duplicates I want them to show app
numArr=["hi", "apple", "window", "hi", "go", "window", "phone", "go", "hi", "down", "hi"];
At first I just wanna to know what function is that do find repeated items I think for python which I put hand on it is not that hard but seem here hard is javascript in addition I said I will try to find on google which do what I want but every code is harder to another code so before asking here I get a popular question which I provide the link above I just checked around but every code is harder then another so at that moment I decided to ask you here
and the result it show the same like this below
"hi","book","goal" appeared 4 times
"window","door","pencil","speaker" appeared 2 times
or I say every (number like four times appeared) make a new array look the easy if by number appeared or by order from a-z
notice that: - When I give to anyone he can pass his words and see his final result -I want the code to show in order from a-z and from big to small - the code or the function must accept even the words in array are million and above -even there is another words show same number of times display them.