// Assignment 1: 99 Bottles of Coke
for(var i = 100; i> 1;i-- )
{
console.log((i-1)+" bottles of coke on the wall, "+(i-1)+"bottles of coke. Take one down and pass it around, "+(i-2)+" bottles
of coke on the wall.");
}
console.log("No more bottles of coke on the wall, no more bottles of
coke. Go to the store and buy some more, 99 bottles of coke on the
wall.")
// Assignment 1: 99 Bottles of Coke for(var i = 100; i> 1;i-- ) { console.log((i-1)+" bottles of coke on the wall, "+(i-1)+"bottles of coke. Take one down and pass it around, "+(i-2)+" bottles of coke on the wall."); } console.log("No more bottles of coke on the wall, no more bottles of coke. Go to the store and buy some more, 99 bottles of coke on the wall.")