About 451,000 results
Open links in new tab
  1. JavaScript String charCodeAt() Method - W3Schools

    The charCodeAt() method returns the Unicode of the character at a specified index (position) in a string. The index of the first character is 0, the second is 1, .... The index of the last character …

  2. String.prototype.charCodeAt() - JavaScript | MDN - MDN Web Docs

    Mar 13, 2025 · The charCodeAt() method of String values returns an integer between 0 and 65535 representing the UTF-16 code unit at the given index. charCodeAt() always indexes the …

  3. Is there a way to get charCode from an individual character?

    Jun 21, 2021 · The only method to get real UNICODE code points (is it that charCode of yours?) from string is to use ES6 and its string enumeration feature: for (let ch of str) { ch here is real …

  4. Convert character to ASCII code in JavaScript - Stack Overflow

    Sep 18, 2008 · How can I convert a character to its ASCII code using JavaScript? For example: get 10 from "\n". Please note that the String.prototype.charCodeAt () method suggested in …

  5. Get Unicode Character Value in JavaScript - GeeksforGeeks

    Jan 3, 2025 · Here are various ways to get Unicode character values in JavaScript. 1. Using charCodeAt () to Get Unicode Values. This code defines a string letter containing the …

  6. How to get the ASCII value in JavaScript for the characters

    my requirement is to get the ASCII value of the alphabet letters... Can anyone suggest how to do this in JavaScript? Here is the example: Or if you have longer strings: …

  7. JavaScript String charCodeAt() - Get Character Code

    Nov 13, 2024 · In this article, you will learn how to effectively utilize the charCodeAt() method in various situations. Discover how to access character codes in strings, handle various positions …

  8. JavaScript: String charCodeAt() method - TechOnTheNet

    This JavaScript tutorial explains how to use the string method called charCodeAt () with syntax and examples. In JavaScript, charCodeAt () is a string method that is used to retrieve a …

  9. JavaScript String charCodeAt() Method - GeeksforGeeks

    Jul 16, 2024 · The JavaScript str.charCodeAt() method returns a Unicode character set code unit of the character present at the index in the string specified as the argument. The index number …

  10. JavaScript String charCodeAt() Method: Character Unicode

    Feb 1, 2025 · The charCodeAt() method is a built-in string function in JavaScript that accesses the character at a specified index and returns its equivalent Unicode value (an integer). Unicode …

  11. Some results have been removed
Refresh