Skip to content

Commit

Permalink
Add Quine in JavaScript
Browse files Browse the repository at this point in the history
  • Loading branch information
jengjeng committed Sep 25, 2020
1 parent 4bebf50 commit 1f83226
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion archive/j/javascript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Welcome to Sample Programs in JavaScript!
- [Rotate by 13 in JavaScript][21]
- [Game of Life in JavaScript][22]
- [Merge Sort in JavaScript][23]
- [Quine in JavaScript][24]

## Fun Facts

Expand Down Expand Up @@ -62,4 +63,5 @@ Welcome to Sample Programs in JavaScript!
[20]: https://github.com/TheRenegadeCoder/sample-programs/issues/1649
[20]: https://github.com/TheRenegadeCoder/sample-programs/issues/1379
[22]: https://github.com/TheRenegadeCoder/sample-programs/issues/1377
[23]: https://github.com/TheRenegadeCoder/sample-programs/issues/1385
[23]: https://github.com/TheRenegadeCoder/sample-programs/issues/1385
[24]: https://github.com/TheRenegadeCoder/sample-programs/issues/1384
1 change: 1 addition & 0 deletions archive/j/javascript/quine.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(function(){console.log('('+arguments.callee.toString()+')()')})()

0 comments on commit 1f83226

Please sign in to comment.