How to generate 26 english letters in js
How to generate 26 english letters in js.
const alphabets = [];
const start = 'a'.charCodeAt(0);
for(let i = 0; i < 26; i++) {
alphabets.push(String.fromCharCode(start + i));
}
How to generate 26 english letters in js.
const alphabets = [];
const start = 'a'.charCodeAt(0);
for(let i = 0; i < 26; i++) {
alphabets.push(String.fromCharCode(start + i));
}