Preface;
Chapter 1: Lexical Structure;
1.1 Comments;
1.2 Identifiers and Reserved Words;
1.3 Optional Semicolons;
Chapter 2: Types, Values, and Variables;
2.1 Numbers;
2.2 Text;
2.3 Boolean Values;
2.4 null and undefined;
2.5 The Global Object;
2.6 Type Conversions;
2.7 Variable Declaration;
Chapter 3: Expressions and Operators;
3.1 Expressions;
3.2 Operators;
3.3 Arithmetic Operators;
3.4 Relational Operators;
3.5 Logical Expressions;
3.6 Assignment Expressions;
3.7 Evaluation Expressions;
3.8 Miscellaneous Operators;
Chapter 4: Statements;
4.1 Expression Statements;
4.2 Compound and Empty Statements;
4.3 Declaration Statements;
4.4 Conditionals;
4.5 Loops;
4.6 Jumps;
4.7 Miscellaneous Statements;
Chapter 5: Objects;
5.1 Creating Objects;
5.2 Properties;
5.3 Object Attributes;
Chapter 6: Arrays;
6.1 Creating Arrays;
6.2 Array Elements and Length;
6.3 Iterating Arrays;
6.4 Multidimensional Arrays;
6.5 Array Methods;
6.6 ECMAScript 5 Array Methods;
6.7 Array Type;
6.8 Array-Like Objects;
6.9 Strings as Arrays;
Chapter 7: Functions;
7.1 Defining Functions;
7.2 Invoking Functions;
7.3 Function Arguments and Parameters;
7.4 Functions as Namespaces;
7.5 Closures;
7.6 Function Properties, Methods, and Constructor;
Chapter 8: Classes;
8.1 Classes and Prototypes;
8.2 Classes and Constructors;
8.3 Java-Style Classes in JavaScript;
8.4 Immutable Classes;
8.5 Subclasses;
8.6 Augmenting Classes;
Chapter 9: Regular Expressions;
9.1 Describing Patterns with Regular Expressions;
9.2 Matching Patterns with Regular Expressions;
Chapter 10: Client-Side JavaScript;
10.1 Embedding JavaScript in HTML;
10.2 Event-Driven Programming;
10.3 The Window Object;
Chapter 11: Scripting Documents;
11.1 Overview of the DOM;
11.2 Selecting Document Elements;
11.3 Document Structure and Traversal;
11.4 Attributes;
11.5 Element Content;
11.6 Creating, Inserting, and Deleting Nodes;
11.7 Element Style;
11.8 Geometry and Scrolling;
Chapter 12: Handling Events;
12.1 Types of Events;
12.2 Registering Event Handlers;
12.3 Event Handler Invocation;
Chapter 13: Networking;
13.1 Using XMLHttpRequest;
13.2 HTTP by: JSONP;
13.3 Server-Sent Events;
13.4 WebSockets;
Chapter 14: Client-Side Storage;
14.1 localStorage and sessionStorage;
14.2 Cookies;Colophon;