Visit Mozilla.org

Sandbox:JS:String.prototype.charAt

From MDC


Returns the character at the specified index.

[edit] Syntax

ret = str.charAt(index)
index
An integer between 0 and 1 less than the length of the string.
ret
If index has a valid value, a string composed solely of the character at index in this string. Otherwise, an empty string.

[edit] See also

charCodeAt, indexOf, lastIndexOf