简单类型 / 字符类型

//In JavaScript there are no char
//type, only string 
let charA = 'A';
let intValue = charA.charCodeAt(0);
//intValue is 65
console.log(`charA is \"${charA}\"`);
console.log(`intValue is ${intValue}`);

intValue++;
let charB = String.fromCharCode(intValue);
//charB is 'B'
console.log(`charB is \"${charB}\"`);
console.log(`intValue is ${intValue}`);