JavaScript is the ubiquitous programming language of the Web, and for more than 15 years,JavaScript: The Definitive Guidehas been the bible of JavaScript programmers around the world. Ideal for JavaScript developers at any level, this book is an all-new excerpt ofThe Definitive Guide, collecting the essential parts of that hefty volume into this slim yet dense pocket reference.
The first 9 chapters document the latest version (ECMAScript 5) of the core JavaScript language, covering:
- Types, values, and variables
- Operators, expressions, and statements
- Objects and arrays
- Functions and classes
The next 5 chapters document the fundamental APIs for using JavaScript with HTML5 and explain how to:
- Interact with web browser windows
- Script HTML documents and document elements
- Modify and apply CSS styles and classes
- Respond to user input events
- Communicate with web servers
- Store data locally on the user's computer
This book is a perfect companion tojQuery Pocket Reference.
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 Arral³