The String type is the only primitive type that doesn't have a definite size. | |||||||||||||||||||
A string can be used to store zero or more Unicode characters. | |||||||||||||||||||
Each character in a string is given a position. | |||||||||||||||||||
The position starts with the first character in position 0, the second character in position 1. | |||||||||||||||||||
The position of the final character in a string is always the length of the string minus 1. | |||||||||||||||||||
String literals are specified by using either double quotes (") or single quotes ('). | |||||||||||||||||||
JavaScript has no character type. | |||||||||||||||||||
| |||||||||||||||||||
The following table lists the JavaScript character literals: | |||||||||||||||||||
|