getting ascii value of char in javascript code example Example: character to ascii javascript String.fromCharCode(65,66,67); // returns 'ABC'