Skip to content

Instantly share code, notes, and snippets.

@theDreamer911
Created January 25, 2021 15:38
Show Gist options
  • Save theDreamer911/fb552e421f3f3c153949011bd46fea43 to your computer and use it in GitHub Desktop.
Save theDreamer911/fb552e421f3f3c153949011bd46fea43 to your computer and use it in GitHub Desktop.
const alpha = Array.from(Array(26)).map((e, i) => i + 65);
const alphabet = alpha.map((x) => String.fromCharCode(x));
console.log(alphabet);
@mavaddat
Copy link

mavaddat commented Mar 3, 2022

const alpha = Array.from(Array(26)).map((e, i) => i + 'A'.charCodeAt())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment