Well i am doing a very simple program that is to calculate the number of occurrance of a character in a string
Hello World
The character H appears 1 times
The character E appaers 2 times
The character L appears 3 times
The character L appears 3 times
The character o appears 2 times
The character W appears 1 times
The character O appears 2 times
The character R appears 1 times
The character L appears 3 times
Here the problem is that for same character L it is printing output line 3 times .......thats not what i want...........tell me a professional approach........I know i can store them in some different array but i want something else
The character L appears 3 times
The character L appears 3 times
The character L appears 3 times
So its your turn to Help me out...........I am doing this one in Java Script but i am looking for login to implemnet not code
Thanks
Sumit Taneja