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

  1. https://codepen.io/Mahaboob-Basha-the-bashful/pen/PoMEXBe
    https://codepen.io/Mahaboob-Basha-the-bashful/pen/ZEgvVMz

    ReplyDelete

Post a Comment

Popular posts from this blog