Method |
Description |
charAt() |
It is used to return the character at the defined position. |
charCodeAt() |
It is used to return the Unicode of the character at the defined index. |
concat() |
It is used to joins two or more strings and return a new string. |
endsWith() |
It is used to check if a string ends with defined string or characters. |
fromCharCode() |
It is used to convert Unicode values to characters. |
includes() |
It is used to check if a string contains the defined string or characters. |
indexOf() |
It is used to return the position of the first found occurrence of a defined value in a string. |
lastIndexOf() |
It is used to return the position of the last found occurrence of a defines value in a string. |
localeCompare() |
It is used to compare two strings in the current locale. |
match() |
It is used to search a string for a match against a regular expression and return the matches. |
repeat() |
It is used to return a new string with a defines number of copies of an existing string. |
replace() |
It is used to search a string for a defined value or a regular expression and return a new string where the defined value are replaced. |
search() |
It is used to search a string for a defined value or regular expression and return the position of the match. |
slice() |
It is used to extract a part of a string and return a new string. |
split() |
It is used to split a string into an array of substrings. |
startsWith() |
It is used to check if a string begins with defined characters. |
substr() |
It is used to extract the characters from a string beginning at a defined start position and through the defined number of characters. |
substring() |
It is used to extract the characters from a string, between two defined indices. |
toLocaleLowerCase() |
It is used to convert a string to lowercase letter according to the host's locale. |
toLocaleUpperCase() |
It is used to convert a string to uppercase letter according to the host's locale. |
toLowerCase() |
It is used to convert a string to lowercase letters. |
toString() |
It is used to return the value of a String object. |
toUpperCase() |
It is used to convert a string to uppercase letters. |
trim() |
It is used to remove the whitespace from both ends of a string. |
valueOf() |
It is used to return the primitive value of a String object. |