Appearance
String
Represents a string in JavaScript -- A set of characters.
Static Methods
fromCharCode(code, ...) → String
Create a string from one or more character codes. For example, String.fromCharCode(65, 66, 67) returns "ABC". Only character codes 0 through 127 (ASCII) are supported.
Returns: String - A string containing one character for each code passed.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| code | int | One or more character codes |
Instance Methods
charAt(index)
Returns the character at the given location.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| index | int | The location from zero to length of string-1 |
charCodeAt(index)
Returns a number representing the Unicode code point of the character at the given location. For example, the code for "A" is 65.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| index | int | The location from zero to length of string-1 |