Dedication; Preface; Conventions Used in This Book; Using Code Examples; Safari® Books Online; How to Contact Us; Acknowledgments; Chapter 1: Good Parts; 1.1 Why JavaScript?; 1.2 Analyzing JavaScript; 1.3 A Simple Testing Ground; Chapter 2: Grammar; 2.1 Whitespace; 2.2 Names; 2.3 Numbers; 2.4 Strings; 2.5 Statements; 2.6 Expressions; 2.7 Literals; 2.8 Functions; Chapter 3: Objects; 3.1 Object Literals; 3.2 Retrieval; 3.3 Update; 3.4 Reference; 3.5 Prototype; 3.6 Reflection; 3.7 Enumeration; 3.8 Delete; 3.9 Global Abatement; Chapter 4: Functions; 4.1 Function Objects; 4.2 Function Literal; 4.3 Invocation; 4.4 Arguments; 4.5 Return; 4.6 Exceptions; 4.7 Augmenting Types; 4.8 Recursion; 4.9 Scope; 4.10 Closure; 4.11 Callbacks; 4.12 Module; 4.13 Cascade; 4.14 Curry; 4.15 Memoization; Chapter 5: Inheritance; 5.1 Pseudoclassical; 5.2 Object Specifiers; 5.3 Prototypal; 5.4 Functional; 5.5 Parts; Chapter 6: Arrays; 6.1 Array Literals; 6.2 Length; 6.3 Delete; 6.4 Enumeration; 6.5 Confusion; 6.6 Methods; 6.7 Dimensions; Chapter 7: Regular Expressions; 7.1 An Example; 7.2 Construction; 7.3 Elements; Chapter 8: Methods; Chapter 9: Style; Chapter 10: Beautiful Features; Awful Parts; Global Variables; Scope; Semicolon Insertion; Reserved Words; Unicode; typeof; parseInt; +; Floating Point; NaN; Phony Arrays; Falsy Values; hasOwnProperty; Object; Bad Parts; ==; with Statement; eval; continue Statement; switch Fall Through; Block-less Statements; ++ −−; Bitwise Operators; The function Statement Versus the function Expression; Typed Wrappers; new; void; JSLint; Undefined Variables and Functions; Members; Options; Semicolon; Line Breaking; Comma; Required Blocks; Forbidden Blocks; Expression Statements; for in Statement; switch Statement; var Statement; with Statement; =; == and !=; Labels; Unreachable Code; Confusing Pluses and Minuses; ++ and −−; Bitwise Operators; eval Is Evil; void; Regular Expressions; Constructors and new; Not Looked For; HTML; JSON; Report; Syntax Diagrams; JSON; JSON Syntax; Using JSON Securely; A JSON Parser; Colophon;