Skip to content

charCodeAt

charCodeAt(string, index) → number · String

Get the Unicode code point of the character at a specific index.

  • string (required): the source string

  • index (required): position (0-based)

utlx
charCodeAt("A", 0)    // 65
charCodeAt("a", 0)    // 97
charCodeAt("€", 0)    // 8364

Released under AGPL-3.0.