Quick Alphabet Array


var alphabet = 'abcdefghijklmnopqrstuvwxyz'.split('');

console.log('this is the letter b...', alphabet[1]);
console.log(alphabet);

The above will output:

this is the letter b... b
["a", "b", "c", "d", "e"...']

In ES6 you could use `let` instead of `var`.



 
 
 

Leave a Reply

Spam protection by WP Captcha-Free