cara mengubah char ke nomor di js
// the first parameter is the index of the string to convert to an ascii code
"A".charCodeAt(0);
//output: 65
Embarrassed Earthworm
// the first parameter is the index of the string to convert to an ascii code
"A".charCodeAt(0);
//output: 65
//Char to Decimal
//======================
// "a" to "z" → 97 to 122
// "A" to "Z" → 65 to 90
"a".charCodeAt(0);
//output: 97
String.fromCharCode(65,66,67);
// returns 'ABC'