Need an array of letters? Here’s a trick:
> const alpha = [...'abcdefghijklmnopqrstuvwxyz']
This assigns the following:
> alpha
[
'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'
]
This is called spread syntax. Our string is iterable, and ... spreads them out into our array.