Start reading JavaScript: The Good Parts: The Good Parts on your Kindle in under a minute. Don't have a Kindle? Get your Kindle here or start reading now with a free Kindle Reading App.

Deliver to your Kindle or other device


Try it free

Sample the beginning of this book for free

Deliver to your Kindle or other device

Sorry, this item is not available in
Image not available for
Image not available

JavaScript: The Good Parts: The Good Parts [Kindle Edition]

Douglas Crockford
4.4 out of 5 stars  See all reviews (71 customer reviews)

Print List Price: £19.99
Kindle Price: £14.39 includes VAT* & free wireless delivery via Amazon Whispernet
You Save: £5.60 (28%)
* Unlike print books, digital books are subject to VAT.

Free Kindle Reading App Anybody can read Kindle books—even without a Kindle device—with the FREE Kindle app for smartphones, tablets and computers.

To get the free app, enter your e-mail address or mobile phone number.


Amazon Price New from Used from
Kindle Edition £14.39  
Paperback £19.99  
Kindle Daily Deal
Kindle Daily Deal: Up to 70% off
Each day we unveil a new book deal at a specially discounted price--for that day only. Learn more about the Kindle Daily Deal or sign up for the Kindle Daily Deal Newsletter to receive free e-mail notifications about each day's deal.

Book Description

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 scrapes away these bad features to reveal a subset of JavaScript that's more reliable, readable, and maintainable than the language as a whole—a subset you can use to create truly extensible and efficient code.

Considered the JavaScript expert by many people in the development community, author Douglas Crockford identifies the abundance of good ideas that make JavaScript an outstanding object-oriented programming language-ideas such as functions, loose typing, dynamic objects, and an expressive object literal notation. Unfortunately, these good ideas are mixed in with bad and downright awful ideas, like a programming model based on global variables.

When Java applets failed, JavaScript became the language of the Web by default, making its popularity almost completely independent of its qualities as a programming language. In JavaScript: The Good Parts, Crockford finally digs through the steaming pile of good intentions and blunders to give you a detailed look at all the genuinely elegant parts of JavaScript, including:

  • Syntax
  • Objects
  • Functions
  • Inheritance
  • Arrays
  • Regular expressions
  • Methods
  • Style
  • Beautiful features

The real beauty? As you move ahead with the subset of JavaScript that this book presents, you'll also sidestep the need to unlearn all the bad parts. Of course, if you want to find out more about the bad parts and how to use them badly, simply consult any other JavaScript book.

With JavaScript: The Good Parts, you'll discover a beautiful, elegant, lightweight and highly expressive language that lets you create effective code, whether you're managing object libraries or just trying to get Ajax to run fast. If you develop sites or applications for the Web, this book is an absolute must.

Product Description

Book Description

Unearthing the Excellence in JavaScript

About the Author

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.

Product details

  • Format: Kindle Edition
  • File Size: 1055 KB
  • Print Length: 176 pages
  • Simultaneous Device Usage: Unlimited
  • Publisher: Yahoo Press; 1 edition (8 May 2008)
  • Sold by: Amazon Media EU S.ą r.l.
  • Language: English
  • ASIN: B0026OR2ZY
  • Text-to-Speech: Enabled
  • X-Ray:
  • Word Wise: Not Enabled
  • Average Customer Review: 4.4 out of 5 stars  See all reviews (71 customer reviews)
  • Amazon Bestsellers Rank: #87,439 Paid in Kindle Store (See Top 100 Paid in Kindle Store)
  •  Would you like to give feedback on images?

More About the Author

Discover books, learn about writers, and more.

Customer Reviews

Most Helpful Customer Reviews
44 of 46 people found the following review helpful
Format:Paperback|Verified Purchase
In this small and dense book you will find JavaScript guru Douglas Crockford's presentation of the beautiful subset of a language that lies within JavaScript as a whole. You can use this subset to write serious programs. Occasionally you might have to use some of what Crockford calls "the bad parts", but at least you'll know the dangers, and how to mitigate them.

Perhaps more importantly, Crockford is very, very aware of how JavaScript differs from classical OO languages, and how these differences can and do trip up classically trained programmers, coming from (say) C++, C# or Java backgrounds. Crockford goes out of his way to point out the differences and the new way of thinking that is required for JavaScript.

This book is not necessarily going to be an easy read, even for professionals. Crockford says so himself in the preface. It's dense and terse. By necessity it introduces terms that might be confusing at first, and which are only explained later. You have to read the whole book, patiently waiting for certain concepts to be explained, and for things to fall into place. On a re-read it all begins to make real sense. I do recommend that this book is read at least twice, preferrably three times. At least it's short!

There is not much to do with the web in this book. There's no DOM manipulation examples, and no Ajax calls. You will find no discussion of modern JavaScript libraries. Crockford just focusses on his area of expertise: the JavaScript language. He highlights and promotes the good parts, and in appendices talks about the "Awful" and merely "Bad" parts.

This is an important book. Crockford writes with the authority, seriousness and simplicity of K&R.
Read more ›
Comment | 
Was this review helpful to you?
3 of 3 people found the following review helpful
By Denis Vukosav TOP 50 REVIEWER
If you were or you are working with jQuery and JavaScript you will eventually learn about Douglas Crockford and his book "JavaScript: The Good Parts".

As one of the driving forces behind JavaScript, with this book he really gave a good explanation of JavaScript's components, although readers must be warned that the various sections should be read more than once to be able to apply and understand the concepts explained before getting some of the more advanced ideas.

The main reason I read this book was need to help me understand building better object oriented JavaScript and more organized AJAX applications. Book is explaining various object patterns which can be used for applications building, from the Object Literal to various functional patterns, Regular Expressions, Arrays and much more.

The author was also able to cover a lot of key concepts that a JavaScript developer needs to understand to be successful, e.g. how equality is actually determined in JavaScript.

For JavaScript developer section "The Good and the Bad Parts of JavaScript" should be also very helpful to be able to truly understand how JavaScript works.

The only book drawback could be that it's not intended for absolute beginners, although it's well written and accessible.

If you are JavaScript web developer or just an enthusiast who is really enjoying jQuery or if you want to know some more intimate details about JavaScript, this book will be of great help. It contains lot of useful tips even for advanced programmers and also can be used as "lighter" reference book.
Comment | 
Was this review helpful to you?
2 of 2 people found the following review helpful
5.0 out of 5 stars Cured my hate of JS 21 April 2014
Format:Paperback|Verified Purchase
When I first heard the title, my immediate response was "Must be a very small book!"

And it is, but it's jam-packed with Good Stuff.

If you're somebody who's picked up JS as you went along and learned to hate it as you went, this is the book that will show you a beautiful, powerful, and remarkably flexible language with no shortcomings that can't be worked around.
Comment | 
Was this review helpful to you?
2 of 2 people found the following review helpful
By Mike
Format:Paperback|Verified Purchase
This book will tell any programmer what they need to know about Javascript. It is focused, to the point and almost everything is useful - no wasting time reading through tons of useless filler.
Comment | 
Was this review helpful to you?
5 of 6 people found the following review helpful
5.0 out of 5 stars not as hard as other reviews make you believe 26 July 2011
By johnny
I bought this book before reading all the reviews, and then got a bit scared that it would be too hard to learn anything useful just reading it cover to cover. It's not like that at all. I'm new to javascript, and it was absolutely fine to learn the syntax and concepts, and it actually got my interest in functional programming back up.
So I would definitely recommend this book to a computer scientist wanting to find out about javascript as a language, not as a tool to make flashy websites. Of course, the main reason I give it five stars is because it's short :-).

I guess my criticism is actually that there's some redundant stuff in the book: the chapter on regular expressions, for example, is fine as a chapter on regular expressions (in javascript), but that's something you would typically look for in reference manuals. The JSON parser is pretty much waste of paper: a url would have been good enough.
Comment | 
Was this review helpful to you?
Format:Paperback|Verified Purchase
Most programmers wouldn't believe Javascript has good parts! but Douglas Crockford does a great job highlighting them!
I bought this book and 2 others "Javascript the definitive guide" & "Javascript Patterns", as far as I am concerned these books are essential reading for any programmer!

These 3 books hold, the dubious honour, of being the only 3 programming books I have actually read cover to cover.
This book, is great, as I initally skim read this book over a lazy saturday afternoon, while drinking beer while sitting in sun lounger. Not something I often associate with tech books! I also watched some of the Douglas Crockfords videos on YouTube, which are great addendums, and a must.

I have re-read this book several times since, as I my journey into Javascript has progressed. The trilogy of javascript books has not left my Desktop, and I find myself refering to them time and again!

Douglas Crockfords style and approach to this book is just right! Easy to follow, and for a tech book a real page turner.
Comment | 
Was this review helpful to you?
Would you like to see more reviews about this item?
Were these reviews helpful?   Let us know
Most Recent Customer Reviews
4.0 out of 5 stars good as a guide to get started on javascript and ...
read this book through, good as a guide to get started on javascript and also for future reference.
Published 9 days ago by Eva
5.0 out of 5 stars Five Stars
Excellent distillation of JavaScript for experienced programmers.
Published 10 days ago by J. Dore
5.0 out of 5 stars All Js programmer should read
Great to improve your knowledge about the language
Like in my case, have been working with js for long but never went deep, should have read it since I began
Strongly... Read more
Published 11 days ago by Elias
3.0 out of 5 stars Three Stars
Not in the best shape but still a satisfying trade
Published 1 month ago by Joćo Caselli
3.0 out of 5 stars I'm only halfway through it and I'm finding that's it not an easy...
I bought it at the recommendation of several people at my workplace. I'm only halfway through it and I'm finding that's it not an easy read, particularly the bit about... Read more
Published 1 month ago by Ravinder Gill
4.0 out of 5 stars Four Stars
Simple and clear to get a full grasp of what really matter when you develop in Javascript.
Published 2 months ago by Angella Andrea
4.0 out of 5 stars More Relevant Than Ever...
I highly, highly recommend this book. It was recommended to be by a friend after a code review of some JavaScript I had written and I found this book to be chock-full of... Read more
Published 3 months ago by Nick Jacobs
5.0 out of 5 stars Compelling
I re-read it several times to make sure I hadn't missed out, and my javascript code has gone from flimsy to solid ever since.
Published 3 months ago by Simon Nuttall
4.0 out of 5 stars Four Stars
Light and meaningful guidance on what to do and not to do in JS - worth the money
Published 3 months ago by MR S.
5.0 out of 5 stars Five Stars
Great book.
Published 4 months ago by Thomas Vangelooven
Search Customer Reviews
Only search this product's reviews

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
First post:
Prompts for sign-in

Search Customer Discussions
Search all Amazon discussions

Look for similar items by category