Created
March 2, 2015 17:37
-
-
Save marcin-chwedczuk/0586e8c946ae0ec5e185 to your computer and use it in GitHub Desktop.
javascript ugly quine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var s="var s=\x22%\x22; console.log(s.replace(\x22%\x22,s.replace(new RegExp(String.fromCharCode(34),\x22g\x22),String.fromCharCode(92)+\x22x22\x22)))"; console.log(s.replace("%",s.replace(new RegExp(String.fromCharCode(34),"g"),String.fromCharCode(92)+"x22"))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment