Skip to content

Instantly share code, notes, and snippets.

@beala
Created January 22, 2013 21:39
Show Gist options
  • Save beala/4598688 to your computer and use it in GitHub Desktop.
Save beala/4598688 to your computer and use it in GitHub Desktop.
Quine in JavaScript. Is this cheating? *grin* http://en.wikipedia.org/wiki/Quine_(computing)
/* For the SpiderMonkey command line interp. */
(function () {
print("(" + arguments.callee + ")();");
})();
/* For the browser. */
(function () {
console.log("(" + arguments.callee + ")();");
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment