24.163. String.charCodeAt( ): get the nth character code from a stringECMAScript v124.163.1. Synopsisstring.charCodeAt(n) 24.163.1.1. Arguments
24.163.1.2. ReturnsThe Unicode encoding of the nth character within string. This return value is a 16-bit integer between 0 and 65535. 24.163.2. DescriptioncharCodeAt( ) is like charAt( ), except that it returns the character encoding at a specific location, rather than returning a substring that contains the character itself. If n is negative or greater than or equal to the string length, charCodeAt( ) returns NaN. See String.fromCharCode( ) for a way to create a string from Unicode encodings. 24.163.3. See AlsoString.charAt( ), String.fromCharCode( ) |