JavaScript Kids

No Starch.com | JavaScript for Kids | TOC.pdf | Index.pdf | Patatap

Experiments Cube Slam | Woof.js | | |

| | | |

Part 1: JavaScript Fundamentals

Chapter 1
The Structure of JavaScript

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
  

JavaScript Syntax: Comments Single Line and Multi Line Only at This Point

Page 10, 11

*** w3 JavaScript Syntax Comments *** | w3 Syntax | Too Advanced: Wikipedia JavaScript Syntax | JS Tuts JavaScript Syntax