Name
charAt() — NN 2 IE J1 ECMA 1
Synopsis
charAt(positionIndex
)
Returns a single character string of the character located at the
zero-based index position passed as a parameter. Use this method
instead of substring()
when only one character
from a known position is needed from a string.
Returned Value
A one-character string. In newer browser versions, an empty string is returned if the parameter value points to a character beyond the length of the string.
Parameters
-
positionIndex
Zero-based integer.
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.