About 322,000 results
Open links in new tab
  1. 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 …

  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.

  3. How to convert character to ASCII code using JavaScript

    Feb 8, 2024 · The purpose of this article is to get the ASCII code of any character by using JavaScript charCodeAt() method. This method is used to return the number indicating the …

  4. Convert a character to its ASCII code in JavaScript

    Apr 14, 2024 · This post will discuss how to convert a character to its ASCII code in JavaScript. For example, the ACSII code of 'A' is 65, '0' is 48, 'a' is 97, etc. 1. Using String.charCodeAt() …

  5. JavaScript Convert Character to ASCII and Vice Versa

    Nov 27, 2021 · In this tutorial, We’ll learn how to convert a character into ASCII code in javascript and vice versa. For character A, its ASCII code is 65. B = 66. a = 97. b = 98. 0 = 48. For each …

  6. How to Convert Character Code to ASCII Code in JavaScript

    Mar 11, 2025 · This tutorial teaches how to convert character code to ASCII code in JavaScript. Learn the methods using charCodeAt() and String.fromCharCode() to efficiently handle …

  7. JavaScript Program to Find ASCII Value of Character

    In the above program, the charCodeAt() method is used to find the ASCII value of a character. The charCodeAt() method takes in an index value and returns an integer representing its UTF …

  8. Convert Characters to ASCII Code Using JavaScript

    Aug 9, 2023 · Converting characters to ASCII code in JavaScript is a fundamental operation with practical applications in various programming scenarios. By utilizing methods like …

  9. Print ASCII Value of a Character in JavaScript - GeeksforGeeks

    Feb 15, 2024 · One can print the ASCII code for the specific character in JavaScript using several methods which are as follows: The charCodeAt () function defined in JavaScript returns the …

  10. how can i convert ascii code to character in javascript

    Mar 9, 2011 · If you want to convert Ascii Codes to Characters you can use: String.fromCharCode(codes); For Example: String.fromCharCode(65,66,67); which returns = …

  11. Some results have been removed