Javascript Programming
Fundamental Data Types
STRING
The string object is designed to carry any collection of characters. The syntax for creating a string is:
var myString = new String("stringContents");
where stringContents is any collection of characters. Notice the use of quotes. You can use a single quote (') or a double quote (") to enclose the characters within your string. You can also create a string using this syntax:
var myString = "stringContents";
The following are all valid Strings: "Hello World!", "854736", ""
Javascript has some very special String-modification tools built in. Here are some examples of these tools: