Name

charCodeAt() — NN 4 IE J3 ECMA 1

Synopsis

charCodeAt(positionIndex)

Returns a number of the decimal Unicode value for the character located at the zero-based index position passed as a parameter. For common alphanumeric characters, the Unicode values are the same as ASCII values.

Returned Value

A positive integer. Returns NaN 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.