how to convert a character into ascii in javascript code example Example: js number to ascii String.fromCharCode(97); // --> 'a'