Last active
September 19, 2023 20:50
-
-
Save igorskyflyer/abc26a8948ecba67a8a1528a4af63437 to your computer and use it in GitHub Desktop.
JavaScript quines
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
// 💣 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