Results 1 - 20 of 57

String

The String global object is a constructor for strings, or a sequence of characters.
ECMAScript6 JavaScript Reference String

String.prototype.charAt()

The charAt() method returns the specified character from a string.
JavaScript Method Prototype Reference String

String.prototype.charCodeAt()

The charCodeAt() method returns an integer between 0 and 65535 representing the UTF-16 code unit at the given index (the UTF-16 code unit matches the Unicode code point for code points representable in a single UTF-16 code unit, but might also be the first code unit of a surrogate pair for code points not representable in a single UTF-16 code unit, e.g. Unicode code points > 0x10000). If you want the entire code point value, use codePointAt().
JavaScript Method Reference String Unicode

String.prototype.concat()

The concat() method combines the text of one or more strings and returns a new string.
JavaScript Method Prototype Reference String

String.prototype.endsWith()

The endsWith() method determines whether a string ends with the characters of another string, returning true or false as appropriate.
JavaScript Method Prototype Reference String

String.fromCharCode()

The static String.fromCharCode() method returns a string created by using the specified sequence of Unicode values.
JavaScript Method Reference String Unicode

String.fromCodePoint()

The static String.fromCodePoint() method returns a string created by using the specified sequence of code points.
ECMAScript6 JavaScript Method Reference String

String.prototype.includes()

The includes() method determines whether one string may be found within another string, returning true or false as appropriate.
JavaScript Method Prototype Reference String

String.prototype.indexOf()

The indexOf() method returns the index within the calling String object of the first occurrence of the specified value, starting the search at fromIndex. Returns -1 if the value is not found.
JavaScript Method Prototype Reference String

String.prototype.lastIndexOf()

The lastIndexOf() method returns the index within the calling String object of the last occurrence of the specified value, searching backwards from fromIndex. Returns -1 if the value is not found.
JavaScript Method Prototype Reference String

string.length

The length property represents the length of a string.
JavaScript Property Prototype Reference String

String.prototype.padEnd()

The padEnd() method pads the current string with a given string (eventually repeated) so that the resulting string reaches a given length. The pad is applied from the end (right) of the current string.
Experimental JavaScript Method Reference String

String.prototype.padStart()

The padStart() method pads the current string with a given string (eventually repeated) so that the resulting string reaches a given length. The pad is applied from the start (left) of the current string.
Experimental JavaScript Method Reference String

String.prototype

The String.prototype property represents the String prototype object.
JavaScript Property Prototype Reference String

String.raw()

The static String.raw() method is a tag function of template literals, similar to the r prefix in Python or the @ prefix in C# for string literals (yet there is a difference: see explanations in this issue). It's used to get the raw string form of template strings (that is, the original, uninterpreted text).
ECMAScript6 JavaScript Method Reference String

String.prototype.slice()

The slice() method extracts a section of a string and returns a new string.
JavaScript Method Prototype Reference String

String.prototype.substr()

The deprecated substr() method returns the characters in a string beginning at the specified location through the specified number of characters.
JavaScript Method Prototype Reference String

String.prototype.substring()

The substring() method returns a subset of a string between one index and another, or through the end of the string.
JavaScript Method Prototype Reference String

String.prototype.toLowerCase()

The toLowerCase() method returns the calling string value converted to lower case.
JavaScript Method Prototype Reference String

String.prototype.toString()

The toString() method returns a string representing the specified object.
JavaScript Method Prototype Reference String