Skip to content

Instantly share code, notes, and snippets.

@hartraft
Created December 15, 2017 12:46
Show Gist options
  • Save hartraft/19d58969ea29e353c0b4961c4b1f3d7e to your computer and use it in GitHub Desktop.
Save hartraft/19d58969ea29e353c0b4961c4b1f3d7e to your computer and use it in GitHub Desktop.
Short gist to retrieve the letters a...z of the alphabet
console.log( 'lowercase alphabet %s', String.fromCharCode( ...Array( 123 ).keys() ).slice( 97 ) );
console.log( 'uppercase alphabet %s',String.fromCharCode( ...Array( 91 ).keys() ).slice( 65 ) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment