About 240,000 results
Open links in new tab
  1. javascript - What is the 'char' keyword used for? - Stack Overflow

    Apr 6, 2012 · What is the char reserved keyword used for in JavaScript (as type declaration is not necessary), and especially, what is the correct syntax to use it (could someone give me a …

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

    Mar 13, 2025 · The charAt() method of String values returns a new string consisting of the single UTF-16 code unit at the given index. charAt() always indexes the string as a sequence of UTF …

  3. JavaScript String fromCharCode() Method - W3Schools

    The String.fromCharCode() method converts Unicode values to characters. The String.fromCharCode() is a static method of the String object. The syntax is always …

  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. JavaScript String Methods - W3Schools

    There are 4 methods for extracting string characters: The charAt() method returns the character at a specified index (position) in a string: The charCodeAt() method returns the code of the …

  6. JavaScript Strings - W3Schools

    To solve this problem, you can use an backslash escape character. The backslash escape character (\) turns special characters into string characters: let text = "We are the so-called …

  7. javascript - string.charAt (x) or string [x]? - Stack Overflow

    Jul 23, 2013 · There are two ways to access an individual character in a string. The first is the charAt method, part of ECMAScript 3: The other way is to treat the string as an array-like …

  8. String.fromCharCode() - JavaScript | MDN - MDN Web Docs

    Apr 3, 2025 · The String.fromCharCode() static method returns a string created from the specified sequence of UTF-16 code units. A number between 0 and 65535 (0xFFFF) representing a …

  9. String - JavaScript | MDN - MDN Web Docs

    Apr 10, 2025 · There are two ways to access an individual character in a string. The first is the charAt() method: The other way is to treat the string as an array-like object, where individual …

  10. Javascript Char Codes (Key Codes) - Cambia Research

    Jan 11, 2007 · An interactive javascript key code reference for javascript developers. Includes an interative text box where you can type a key and see it's code along with a complete lookup table.

Refresh