Skip to content

Instantly share code, notes, and snippets.

@clarkenheim
Created January 3, 2013 09:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clarkenheim/4442295 to your computer and use it in GitHub Desktop.
Save clarkenheim/4442295 to your computer and use it in GitHub Desktop.
The song "99 bottles of beer" in 2 lines of javascript
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