String Flashcards
(42 cards)
String.charAt()
Returns the character at the specified index position.
String.charCodeAt()
Returns the Unicode of the character at the specified index.
String.concat()
Joins two or more strings, and returns a new joined string.
String.fromCharCode()
Converts Unicode values to characters.
String.indexOf()
Returns the position of the first found occurrence of a specified value in a string.
String.lastIndexOf()
Returns the position of the last found occurrence of a specified value in a string
String.length()
Returns the length of a string.
String.localeCompare()
Compares two strings in the current locale.
String.match()
Searches a string for a match against a regular expression, and returns the matches.
String.replace()
Searches a string for a specified value, or a regular expression, and returns a new string where the specified values are replaced.
String.search()
Searches a string for a specified value, or regular expression, and returns the position of the match.
String.slice()
Extracts a part of a string and returns a new string
String.split()
Splits a string into an array of substrings.
String.substring()
Extracts the characters from a string, between two specified indices.
String.toLocaleLowerCase()
Converts a string to lowercase letters, according to the host’s locale.
String.toLocaleUpperCase()
Converts a string to uppercase letters, according to the host’s locale.
String.toLowerCase()
Converts a string to lowercase letters
String.toString()
Returns the value of a string object.
String.toUpperCase()
Converts a string to uppercase letters.
String.trim()
Removes whitespace from both ends of a string.
String.valueOf()
Returns the primitive value of a String object.
Returns the character at the specified index position.
String.charAt()
Returns the Unicode of the character at the specified index.
String.charCodeAt()
Joins two or more strings, and returns a new joined string.
String.concat()