Skip to content

Instantly share code, notes, and snippets.

@nataliemarleny
Last active December 5, 2018 22:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nataliemarleny/e63b3ab309388008a9ab8ec2215ce8db to your computer and use it in GitHub Desktop.
Save nataliemarleny/e63b3ab309388008a9ab8ec2215ce8db to your computer and use it in GitHub Desktop.
ASCII map formula
'STRING'.split('').map(c => c.charCodeAt()

// decodes string and gives ASCII values

// useful when you want to know which ASCII values a string is made of for debugging 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment