• ISBN13:


  • ISBN10:


  • Format: Paperback
  • Copyright: 2008-05-01
  • Publisher: Oreilly & Associates Inc

Note: Supplemental materials are not guaranteed with Rental or Used book purchases.

Purchase Benefits

  • Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • Get Rewarded for Ordering Your Textbooks! Enroll Now
  • We Buy This Book Back!
    In-Store Credit: $1.05
    Check/Direct Deposit: $1.00
List Price: $29.99 Save up to $4.50
  • Rent Book $26.99
    Add to Cart Free Shipping


Supplemental Materials

What is included with this book?

  • The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.
  • The Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.


Most programming languages contain good and bad parts, but JavaScript has more than its share of the bad, having been developed and released in a hurry before it could be refined. This authoritative book offers a detailed explanation of the features that make JavaScript an outstanding object-oriented programming language, and warns you about the bad parts. In the process, JavaScript: The Good Parts defines a subset of JavaScript that's more reliable, readable, and maintainable than the language as a whole. Author Douglas Crockford, a member of JavaScript 2.0 committee at ECMA, is considered by many people in the development community to be the JavaScript expert. A beautiful, elegant, lightweight and highly expressive language lies buried under a steaming pile of good intentions and blunders, he explains. The very good ideas include functions, loose typing, dynamic objects, and an expressive object literal notation. Awful ideas include a programming model based on global variables. With JavaScript: The Good Parts, you can release this elegant programming language from its old shell, and create more maintainable, extensible, and efficient code.

Author Biography

Douglas Crockford is a Senior JavaScript Architect at Yahoo!, well known for introducing and maintaining the JSON (JavaScript Object Notation) format. He's a regular speaker at conferences on advanced JavaScript topics, and serves on the ECMAScript committee.

Table of Contents

Prefacep. xi
Good Partsp. 1
Why JavaScript?p. 2
Analyzing JavaScriptp. 3
A Simple Testing Groundp. 4
Grammarp. 5
Whitespacep. 5
Namesp. 6
Numbersp. 7
Stringsp. 8
Statementsp. 10
Expressionsp. 15
Literalsp. 17
Functionsp. 19
Objectsp. 20
Object Literalsp. 20
Retrievalp. 21
Updatep. 22
Referencep. 22
Prototypep. 22
Reflectionp. 23
Enumerationp. 24
Deletep. 24
Global Abatementp. 25
Functionsp. 26
Function Objectsp. 26
Function Literalp. 27
Invocationp. 27
Argumentsp. 31
Returnp. 31
Exceptionsp. 32
Augmenting Typesp. 32
Recursionp. 34
Scopep. 36
Closurep. 37
Callbacksp. 40
Modulep. 40
Cascadep. 42
Curryp. 43
Memoizationp. 44
Inheritancep. 46
Pseudoclassicalp. 47
Object Specifiersp. 50
Prototypalp. 50
Functionalp. 52
Partsp. 55
Arraysp. 58
Array Literalsp. 58
Lengthp. 59
Deletep. 60
Enumerationp. 60
Confusionp. 61
Methodsp. 62
Dimensionsp. 63
Regular Expressionsp. 65
An Examplep. 66
Constructionp. 70
Elementsp. 72
Methodsp. 78
Stylep. 94
Beautiful Featuresp. 98
Awful Partsp. 101
Bad Partsp. 109
JSLintp. 115
Syntax Diagramsp. 125
JSONp. 136
Indexp. 147
Table of Contents provided by Ingram. All Rights Reserved.

Rewards Program

Write a Review