// the first parameter is the index of the string to convert to an ascii code "A".charCodeAt(0); //output: 65