Quantcast
Channel: zReference
Viewing all articles
Browse latest Browse all 19

Quick Alphabet Array

$
0
0
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`.

Viewing all articles
Browse latest Browse all 19

Trending Articles