S.No. | Method & Description |
---|
1. | charAt() It returns the character at the specified index. |
2. | charCodeAt() It returns a number showing the Unicode value of the character at the given index. |
3. | concat() It combines the text of two strings and gives a new string. |
4. | indexOf() It returns the index within the calling String object of the first occurrence of the specified value, or -1 if not found. |
5. | lastIndexOf() It returns the index within the calling String object of the last occurrence of the specified value, or -1 if not found. |
6. | localeCompare() It returns a number showing whether a reference string comes before or after or is the same as the given string in sort order. |
7. | match() It matches a regular expression against a string. |
8. | replace() It finds a match between a regular expression and a string and replaces the matched substring with a new substring. |
9. | search() It runs the search for a match between a regular expression and a specified string. |
10. | slice() It removes a section of a string and returns a new string. |
11. | split() It splits a String object into an array of strings by separating the string into substrings. |
12. | substr() It returns the characters in a string beginning at the specified location through the specified number of characters. |
13. | substring() It returns the characters in a string between two indexes into the string. |
14. | toLocaleLowerCase() The characters within a string are changed to lower case while respecting the current locale. |
15. | toLocaleUpperCase() The characters within a string are changed to an upper case while respecting the current locale. |
16. | toLowerCase() It returns the calling string value changes to lower case. |
17. | toString() It returns a string showing the specified object. |
18. | toUpperCase() It returns the calling string value changes to uppercase. |
19. | valueOf() It returns the first value of the specified object. |