Answers for "shortcut to create a alphabet array js"

51

alphabet array js

const alphabet = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"];
//for upper case use the toUpperCase() function
Posted by: Guest on July-01-2020
0

js alphabets array

let alphabet = [...Array(26).keys()].map(i => String.fromCharCode(i + 97));
Posted by: Guest on February-12-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language