Page 8
// The Structure of a JavaScript Program Page 8 => jk;000
// Draw as many Cats as You Want
var drawCats = function (howManyTimes) {
for (var i = 0; i < howManyTimes; i++) {
console.log( i + " =^.^= ");
}
};
drawCats(10); // You can put any number here instead of 10
Page 10, 11
*** w3 JavaScript Syntax Comments *** | w3 Syntax | Too Advanced: Wikipedia JavaScript Syntax | JS Tuts JavaScript Syntax