var myArray = ["A", "B", "C"];
for (var i = 0; i < myArray.length; i++)
{
    console.log("The member of myArray in index " + i + " is " + myArray[i]);
}

var i = 9;
while (i > 0)
{
    console.log(i + " bottles of beer on the wall");
    i -= 1;
}