charCodeAt

The charCodeAt method returns unicode of the character at the specified index in a string.

 

Syntax

System.Int32 charCodeAt(System.Int32 index);

 

Parameters

index

Index of the character to return. Being 0 the first character and -1 the last one.

 

Return Value

Returns the Unicode of the character in the index

 

Remarks

Member of string.

 

Example