const code = input.charCodeAt(i); if (code > 96 && code < 123) javascript code example
Example: javascript convert between string and ascii
let ascii = 'a'.charCodeAt(0); // 97
let char = String.fromCharCode(ascii); // 'a'
let ascii = 'a'.charCodeAt(0); // 97
let char = String.fromCharCode(ascii); // 'a'