Appearance
String
Represents a string in JavaScript -- A set of characters.
Static Methods
fromCharCode(code) → String
Create a string from a char code
Returns: String - A string of length N consisting of the N specified UTF-16 code units.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| code | int | The character code |
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 UTF-8 character code at the given location
Parameters:
| Parameter | Type | Description |
|---|---|---|
| index | int | The location from zero to length of string-1 |