Created
November 1, 2012 08:58
-
-
Save sofish/3992575 to your computer and use it in GitHub Desktop.
write a code snippet to print itself
This file contains hidden or 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
// JS: | |
(function(){console.log('(' + arguments.callee.toString() + ')()')})(); | |
// JS, recursion | |
~function (){ | |
typeof i !== 'number' && (i = 0); | |
return (i++ < 3) && | |
(fn = '~' + arguments.callee.toString() + '()') && | |
(console.log(fn), eval(fn)); | |
}(); |
ryunhe
commented
Nov 1, 2012
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment