[]

Returns the character at the given index of this string.

Syntax
aString [index]
Parameters
index - Integer
The index of the character to retrieve.
Return Value
The character.
Remarks

The index must be a valid index. The string is encoded with a multi-byte encoding, either UTF-8 or UTF-16 depending on the platform. A character may be encoded with one or more units. If the index is not at the beginning of a sequence, an error is raised.