Skip to content

Instantly share code, notes, and snippets.

@Spuffynism
Created July 18, 2018 02:04
Show Gist options
  • Save Spuffynism/7f31d330476bb780740b460400a0cc69 to your computer and use it in GitHub Desktop.
Save Spuffynism/7f31d330476bb780740b460400a0cc69 to your computer and use it in GitHub Desktop.
explain this
// Collection of weird JS snippets
// taking advantage of non-utf chars
thіs.x = 'a'
this.x // error
// taking advantage of regex syntax
/(\/)/gimuy.exec`\/`[-[~[]]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment