Created
January 3, 2013 09:52
-
-
Save clarkenheim/4442295 to your computer and use it in GitHub Desktop.
The song "99 bottles of beer" in 2 lines of javascript
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
var i=99,w=" on the wall",t=" bottle",o=" of beer"; | |
for(;i;)b=i+(i^1?t+'s':t)+o,console.log(b+w+", "+b+".\nTake one down and pass it around, "+--i+(i^1?t+'s':t)+w) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment