JavaScript String method: charCodeAt()
[this page | pdf | back links]
The charCodeAt() method (when applied to a
JavaScript
string) returns
the Unicode character code of the character at specified index position (note:
strings in JavaScript are zero index based, so the first character is at
position zero).
It
has the following syntax with the following parameters:
string.charCodeAt(indexvalue)
|
Parameter
|
Required / Optional
|
Description
|
|
indexvalue
|
Required
|
Integer indicating
index (position) of character for which to return its Unicode character code
|
NAVIGATION LINKS
Contents | Prev | Next | JavaScript String Variables