Table of Contents for
JavaScript: The Good Parts
Close
Version ebook
/
Retour
JavaScript: The Good Parts
by Douglas Crockford
Published by O'Reilly Media, Inc., 2008
Cover
JavaScript: The Good Parts
SPECIAL OFFER: Upgrade this ebook with O’Reilly
A Note Regarding Supplemental Files
Preface
Using Code Examples
Safari® Books Online
How to Contact Us
Acknowledgments
1. Good Parts
Analyzing JavaScript
A Simple Testing Ground
2. Grammar
Names
Numbers
Strings
Statements
Expressions
Literals
Functions
3. Objects
Retrieval
Update
Reference
Prototype
Reflection
Enumeration
Delete
Global Abatement
4. Functions
Function Literal
Invocation
Arguments
Return
Exceptions
Augmenting Types
Recursion
Scope
Closure
Callbacks
Module
Cascade
Curry
Memoization
5. Inheritance
Object Specifiers
Prototypal
Functional
Parts
6. Arrays
Length
Delete
Enumeration
Confusion
Methods
Dimensions
7. Regular Expressions
Construction
Elements
8. Methods
9. Style
10. Beautiful Features
A. Awful Parts
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
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
Using JSON Securely
A JSON Parser
Index
About the Author
Colophon
SPECIAL OFFER: Upgrade this ebook with O’Reilly
Prev
Previous Chapter
Report
Next
Next Chapter
E. JSON
Appendix D. Syntax Diagrams
Thou map of woe, that thus dost talk in signs!
—
William Shakespeare, The
Tragedy of Titus Andronicus
Prev
Previous Chapter
Report
Next
Next Chapter
E. JSON