номер JS до ASCII
String.fromCharCode(97); // --> 'a'
Snackety Snack
String.fromCharCode(97); // --> 'a'
'a'.charCodeAt(0)//returns 97, where '0' is the index of the string 'a'
const vowels = []
for (let i = 1; i <= 26; i++) {
let values = i - 1
let keys = 64 + i
if (values <= 25) {
vowels.push({ [`${String.fromCharCode(keys)}`]: values })
}
}