Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
JavaScript: The Good Parts
Dedication
A Note Regarding Supplemental Files
Preface
Conventions Used in This Book
Using Code Examples
Safari® Books Online
How to Contact Us
Acknowledgments
1. Good Parts
Why JavaScript?
Analyzing JavaScript
A Simple Testing Ground
2. Grammar
Whitespace
Names
Numbers
Strings
Statements
Expressions
Literals
Functions
3. Objects
Object Literals
Retrieval
Update
Reference
Prototype
Reflection
Enumeration
Delete
Global Abatement
4. Functions
Function Objects
Function Literal
Invocation
The Method Invocation Pattern
The Function Invocation Pattern
The Constructor Invocation Pattern
The Apply Invocation Pattern
Arguments
Return
Exceptions
Augmenting Types
Recursion
Scope
Closure
Callbacks
Module
Cascade
Curry
Memoization
5. Inheritance
Pseudoclassical
Object Specifiers
Prototypal
Functional
Parts
6. Arrays
Array Literals
Length
Delete
Enumeration
Confusion
Methods
Dimensions
7. Regular Expressions
An Example
Construction
Elements
Regexp Choice
Regexp Sequence
Regexp Factor
Regexp Escape
Regexp Group
Regexp Class
Regexp Class Escape
Regexp Quantifier
8. Methods
9. Style
10. Beautiful Features
A. Awful Parts
Global Variables
Scope
Semicolon Insertion
Reserved Words
Unicode
typeof
parseInt
+
Floating Point
NaN
Phony Arrays
Falsy Values
hasOwnProperty
Object
B. 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
C. 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
D. Syntax Diagrams
E. JSON
JSON Syntax
Using JSON Securely
A JSON Parser
Index
About the Author
Colophon
Copyright
← Prev
Back
Next →
← Prev
Back
Next →