May 2011
Intermediate to advanced
1096 pages
40h 54m
English
String.charAt() — get the ‘n’th character from a string
string.charAt(n)
nThe index of the character that should be returned
from string.
The nth character of
string.
String.charAt() returns the
nth character of the string
string. The first character of the string
is numbered 0. If n is not between 0 and
string.length−1, this method returns an
empty string. Note that JavaScript does not have a character data
type that is distinct from the string type, so the returned
character is a string of length 1.
Read now
Unlock full access