An object representing a series of characters in a string. String is a core object.
new String(string);
string
The String object is a built-in JavaScript object. You an treat any JavaScript string as a String object.
A string can be represented as a literal enclosed by single or double quotation marks; for example, "Hyperion" or 'Hyperion'.
The following statement creates a string variable:
var last_name = "Schaefer"
The following statements evaluate to 8, "SCHAEFER," and "schaefer":
Accessing individual characters in a string
You can think of a string as an array of characters. In this way, you can access the individual characters in the string by indexing that array. For example, the following code:
"The first character in the string is H"