find ascii value of a word js code example
Example 1: character to ascii in js
'a'.charCodeAt(0)//returns 97, where '0' is the index of the string 'a'
Example 2: look up asciii value javascript
var charCode = "a".charCodeAt(0);
console.log(charCode);