Skip to content

Instantly share code, notes, and snippets.

@bergwerf
Created September 30, 2018 18:07
Show Gist options
  • Save bergwerf/46f2938d58d497e55d64532fea3d76bf to your computer and use it in GitHub Desktop.
Save bergwerf/46f2938d58d497e55d64532fea3d76bf to your computer and use it in GitHub Desktop.
Shortest JS to generate '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'
// This:
s='';for(i=47;i<83;)s+=String.fromCharCode(++i>57?i+7:i)
// Is the same as this:
s='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment