ASCII is a character encoding standard that represents text-based information using numbers. Encoding text-based information to numbers is important because computers can only understand numbers, or more specifically, binaries (i.e.
ASCII works with a set of 128 characters consisting of Alphabets, digits, special characters, and control characters. It represents these 128 characters using 7-bit integers from 0 to 127.
var s = 'ABC' var asciiCode = s.charCodeAt(0) // Convert the character at index 0 to ASCII code console.log(asciiCode) // 65
var asciiCode = 64 var char = String.fromCharCode(64) console.log(char) // '@'