get ascii value of char in js code example
Example 1: character to ascii javascript
"ABC".charCodeAt(0) // returns 65
Example 2: look up asciii value javascript
var charCode = "a".charCodeAt(0);
console.log(charCode);
"ABC".charCodeAt(0) // returns 65
var charCode = "a".charCodeAt(0);
console.log(charCode);