Skip to content

Instantly share code, notes, and snippets.

@igorskyflyer
Last active September 19, 2023 20:50
Show Gist options
  • Save igorskyflyer/abc26a8948ecba67a8a1528a4af63437 to your computer and use it in GitHub Desktop.
Save igorskyflyer/abc26a8948ecba67a8a1528a4af63437 to your computer and use it in GitHub Desktop.
JavaScript quines
// 💣 JavaScript quines
//
// What's a quine?
//
// A quine is a program that does not take any input but outputs a copy of its own code.
//
// 1st quine
(function () {
console.log(arguments.callee.toString())
}())
// 2nd quine
function quine(){return quine+";quine()"};quine();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment