- charAt(): By this method we can see the position of string as we want.
Example:
2. concat():By this method we can join tow or more strings lets see an example:
3. includes(): Its use for searching some words or characters from a string ,if its find the search word its return true otherwise return false .Lets see an example:
4. endsWith(): The endsWith() method determines whether a string ends with the characters of a specified string, returning true or false as appropriate.
5. indexOf(): Its looks likes search() method, method returns the index within the calling string object of the first occurrence of the specified value, starting the search at fromIndex. Returns -1 if the value is not found.Lets see an example:
6. split(): If we need to take some words from string of any position then there we use split() methods lets see an example:
7. toLowerCase(): This method works to show all the letter of a string in small letter.Lets see an example.
8. toUpperCase(): This method works to show all the letter of a string in capital letter.Lets see an example.
9. replace(): By this method we can replace one or more word of a string by another word which we want.Lets see an example:
10. trim(): By this method we can remove extra spaces from a string.Lets see an example:
Thank you for reading this blog I hope its will help you to understand some of string methods.