String

Description

A character string. Each character is adressable by index.

Properties

length readonly The length of the string.

Constructors

String readonly Returns a string representation of the value given as an argument.

Methods

anchor readonly Returns a string consisting of this string enclosed in a <a> tag.
big readonly Returns a string consisting of this string enclosed in a <big> tag.
blink readonly Returns a string consisting of this string enclosed in a <blink> tag.
bold readonly Returns a string consisting of this string enclosed in a <b> tag.
charAt readonly Returns the character at the specified index.
charCodeAt readonly Returns the Unicode value of the character at the given index.
concat readonly If necessary, converts the one or more given values to strings.
fixed readonly Returns a string consisting of this string enclosed in a <tt> tag.
fontcolor readonly Returns a string consisting of this string enclosed in a <font> tag.
fontsize readonly Returns a string consisting of this string enclosed in a <font> tag.
indexOf readonly Returns the index within the string of the first occurrence of the specified string, starting the search at fromIndex if provided.
italics readonly Returns a string consisting of this string enclosed in a <i> tag.
lastIndexOf readonly Returns the index within the string of the last occurrence of the specified value.
link readonly Returns a string consisting of this string enclosed in a <a> tag.
localeCompare readonly Performs a localized comparison of two strings.
match readonly Matches a string against a regular expression.
replace readonly  
search readonly  
slice readonly Extracts a substring of the given string and returns it as a new string.
small readonly Returns a string consisting of this string enclosed in a <small> tag.
split readonly Splits a string into a group of substrings, places those strings in an array, and returns the array.
strike readonly Returns a string consisting of this string enclosed in a <strike> tag.
sub readonly Returns a string consisting of this string enclosed in a <sub> tag.
substr readonly Returns a string containing the characters beginning at the specified index, start, through the specified number of characters.
substring readonly Returns a substring of the given string by extracting characters from indexA up to but not including indexB.
sup readonly Returns a string consisting of this string enclosed in a <sup> tag.
toLocaleLowerCase readonly Returns a new string which contains all the characters of the original string converted to lowercase (localized).
toLocaleUpperCase readonly Returns a new string which contains all the characters of the original string converted to uppercase (localized).
toLowerCase readonly Returns a new string which contains all the characters of the original string converted to lowercase.
toSource readonly Creates a string representation of this object that can be fed back to?eval()?to re-create an object. Works only with built-in classes.
toString readonly Returns itself.
toUpperCase readonly Returns a new string which contains all the characters of the original string converted to uppercase.
valueOf readonly Returns itself.

Static Methods

fromCharCode readonly Returns a string created by concatenation one or more characters specified as ASCII values.