I did this for getting the alphabet. Is is a fast and good way to do ?
function alphabet ( ) {
const alphabet = []
for(let i=97; i<123; i++) {
alphabet.push(String.fromCharCode(i))
}
return alphabet
}
console.log(alphabet())
How would you write it if you had to ?