String Functions :

Here is a list of each method and its description with examples. For example we take a variable

Example :
                    var str="Hello Afixi";
                

charAt()

concat()

indexOf()

length

match()

replace()

slice(begin,end)

split(separator,limit)

substr(start,length)

substring(from, to)

toLowerCase()

toUpperCase()

Exercises :
  1. Count number of vowels in a string.
  2. Accept a string and insert into an array checking duplicate .
  3. Accept a string and print in reverse order.
  4. Enter a string. Count number of words in the string.
  5. Enter a string.Find a given string and then replace with another.
After editing Click here:
Output: