// Pick a string. Your string can have any number of characters. var my_string = "a"; // Calculate the ASCII value of the first character, i.e. the character at the position 0. var ASCII_value = my_string.charCodeAt(0);