I am Hack Sparrow
Captain of the Internets.

Get ASCII value of Character, Convert ASCII to Character in JavaScript

To get the ASCII value of a character, use the charCodeAt instance method of the String JavaScript object.
Example:

var s = 'A';
console.log(s.charCodeAt(0));

To convert an ASCII value to its corresponding character use the fromCharCode static method of the String JavaScript object.
Example:

console.log(String.fromCharCode(65));

Make a Comment