charCodeAt

Returns the Unicode of the character at the specified index

Syntax

charCodeAt(pos)

Returns

returns (integer) of char at string position

Parameters

pos (integer)
position

Usage

var test = "test value";

for(var i = 0; i < test.length; i++)
{
    echo( i + ": " + test.charCodeAt(i) );
}


/* this will return:
0: 116
1: 101
2: 115
3: 116
4: 32
5: 118
6: 97
7: 108
8: 117
9: 101
*/