function translateInWord(mas){
mas = [].concat(...mas);
for (let i = 0; i < mas.length; i++){
mas[i] = String.fromCharCode(mas[i]);
}
return mas;
}
console.log(translateInWord([[6,8,13],[5,3,0]]));
I want the program to show me every letter in ASCII from the array 'mas` (that is, it should turn out ['G','I','N','F','D','A'])
Ais 65, not 0. Perhaps you mean the offset in the English alphabet rather than ASCII?97would also be the offset in the English alphabet, just lowercase. Better get away from ASCII at all and redefine this problem. The offsets relative to a specificconst alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";