charCodeAt() String Method in JavaScript

charCodeAt() returns the unicode value of the character at the specified index of a string:

var someString = "Whale";

console.log(someString.charCodeAt(3));

// 108

Syntax

myString.charCodeAt(index);

See Also

✖ Clear

🕵 Search Results

🔎 Searching...