JS-Assignment-7

 1. Consider the following string

                aaaabbababababbbbabababaaaa

        Find frequency of "a" and "b".

  Note- Frequency means, the no of times that specific character has                  appeared.


2. Write a function to receive a string of multiple words as argument         and then print the no of words in that string.

        Example:

            Input : how are you all

            Output: 4







Comments

Popular posts from this blog