Sync
This commit is contained in:
parent
6f050a029e
commit
776bba907c
3887 changed files with 59894 additions and 7280 deletions
12
Task/99-Bottles-of-Beer/JavaScript/99-bottles-of-beer-5.js
Normal file
12
Task/99-Bottles-of-Beer/JavaScript/99-bottles-of-beer-5.js
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
(function(){var beer = 99,string='';
|
||||
while (beer > 0)
|
||||
{
|
||||
string+=beer+"bottles of beer on the wall\n"+ //inline line appending shouldn't be as expensive.
|
||||
beer +
|
||||
"bottles of beer\nTake one down, pass it around\n"+
|
||||
(--beer)+
|
||||
" bottles of beer on the wall\n" ;
|
||||
|
||||
}
|
||||
console.log(string);
|
||||
})()
|
||||
Loading…
Add table
Add a link
Reference in a new issue