11.12.2012 Views

JavaScript 2.0-The Complete Reference, Second ... - freecodingtutorial

JavaScript 2.0-The Complete Reference, Second ... - freecodingtutorial

JavaScript 2.0-The Complete Reference, Second ... - freecodingtutorial

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

List of Figures<br />

Chapter 1: Introduction to <strong>JavaScript</strong><br />

Figure 1-1: "Hello World from <strong>JavaScript</strong>" under Internet Explorer<br />

Figure 1-2: <strong>JavaScript</strong> error dialog<br />

Figure 1-3: <strong>JavaScript</strong> code may print on the screen if not masked.<br />

Figure 1-4: Use to handle browsers with no <strong>JavaScript</strong>.<br />

Figure 1-5: Scripts can interact with users.<br />

Figure 1-6: <strong>JavaScript</strong> console used for debugging and testing<br />

Chapter 2: <strong>JavaScript</strong> Core Features—Overview<br />

Figure 2-1: Output of write() and writeln() methods<br />

Chapter 3: Data Types and Variables<br />

Figure 3-1: Illustrating escape codes and quoting in strings<br />

Figure 3-2: A local variable hides a global variable of the same name.<br />

Figure 3-3: Variables may be visible without yet being initialized.<br />

Chapter 4: Operators, Expressions, and Statements<br />

Figure 4-1: Logical expressions can be short-circuited.<br />

Figure 4-2: Modern browsers try to gracefully accommodate non-terminating scripts.<br />

Figure 4-3: break used with and without a label<br />

Figure 4-4: continue used both with and without the label<br />

Figure 4-5: <strong>The</strong> for…in statement is useful for iterating over an object‘s properties.<br />

Chapter 6: Objects<br />

Figure 6-1: Enumerating properties of the Document object with a for/in loop<br />

Figure 6-2: Mozilla supports array-style indexing of strings.<br />

Figure 6-3: <strong>Reference</strong> variables can be changed within functions.<br />

Figure 6-4: Associative arrays provide key/value data lookup capabilities in <strong>JavaScript</strong>.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!