The methods provided by the String object are used to process strings and characters.
Some commonly used methods:
charAt(index): Returns the character at index in the string.
indexOf(searchValue,[fromIndex]): This method looks for the searchValue that appears for the first time in the string. If fromIndex is given, the search starts from this position in the string, and when the searchValue is found, the position of the first character of the string is returned.
lastIndexOf(searchValue,[fromIndex]): Searches forward from the tail of the string and reports the first instance found.
substring(indexA,indexB): Get the substring from indexA to indexB
toLowerCase(): Convert all characters in the string to lowercase
toUpperCaser(): Convert all characters in the string to uppercase
Have you understood the usage of String objects? I hope you can like this article.