charAt(), which returns the character at a specified index in a string, and
indexOf(), which returns the index of the first occurrence of a specified value in a string.
You can use string methods to perform tasks such as extracting specific characters or substrings from a string, searching for specific values within a string, or changing the case of a string. You can also use string methods to format and manipulate strings in more complex ways, such as by splitting a string into an array of substrings or concatenating multiple strings together.
Returns character at a specified index in the string.
replace a substring/pattern in the string.
Returns a specified part of the string.
Returns the string divided into a list of substrings.
Returns a new string with removed whitespace from both ends.