var str = "A" var charCode = str.charCodeAt(0)//65
var charCode = 65 var str = String.fromCharCode(charCode); //str = 65;