how to print the ascii value of a given character in javascript code example Example: character to ascii javascript "ABC".charCodeAt(0) // returns 65