share
Stack OverflowGood JavaScript Books?
[+211] [26] user13200
[2008-09-16 17:36:53]
[ javascript books reference ]
[ http://stackoverflow.com/questions/74884/good-javascript-books ] [DELETED]

I find myself using Javascript day to day without a solid understanding of the language. There are some great writeups out there about using specific features of the language, but I'd like a distilled, printed book reference about the language itself.

Please list good books that discuss the JavaScript language; not frameworks, usage and quirks.

(2) This should be reopened. Seriously this post is definitely constructive. Jeez SO - Aaron
(1) I have written a review/ comparison of 5 JavaScript books highlighting the weaknesses and strengths of every book. anuary.com/68/the-best-javascript-book The best book about JavaScript depends on what you are looking to learn (familiarising with syntax/ function reference, exploring different patterns or solving particular issues, such as legacy browser support and DOM manipulation). It should help the reader to pick the best book about JavaScript for his intentions. - Gajus Kuizinas
How on earth this post is considered "not constructive" ? - ashy_32bit
I agree with @Aaron. Despite subjectivity, I find posts like this to be some of the most valuable ones on SO and I bet a lot of others would agree. SO should consider revising the guidelines. - John Lehmann
(1) It's not about being constructive, it's about being something that SO is not for: book questions. - markus-tharkun
[+141] [2008-09-16 17:40:45] Alan Storm

Douglas Crockford's recent JavaScript: The Good Parts [1] from O'Reilly is an excellent overview of the JavaScript language from a Computer Science/Programming point of view. How Objects/Inheritance works, what language constructs are available, how scope works, how closure works, etc.

It also highlights some features Crockford thinks are "Bad" and to be avoided. Whether or not you agree with him it's good background information to have.

[1] http://rads.stackoverflow.com/amzn/click/0596517742

(3) There's a Kindle copy of this available now. Even better. - Steve Rowe
(2) +1 I just got it. You're right that is a phenomenally good book - Kevin
watching crockford's videos will contribute to you just as much, maybe more. - Comptrol
(10) "The Good Parts" is a great book, but there's a couple reasons it shouldn't be your only JavaScript book. First, it doesn't cover browser APIs at all, rightfully so, since it's a book about the language itself (also Crockford considers the DOM APIs to be a "bad part"). Second, Crockford holds very strong opinions about JavaScript style, and thus this book is somewhat opinionated. I'd recommend "The Good Parts" as a supplement to "The Definitive Guide" by David Flanagan. - tlrobinson
1
[+97] [2008-09-16 17:38:27] Kevin [ACCEPTED]

The javascript book from o'reilly is great.

Javascript The Definitive guide [1]

[1] http://www.amazon.com/s/ref=nb_ss_gw/002-3712822-3124817?url=search-alias%3Daps&field-keywords=oreilly+javascript+the+definitive+guide

(2) This is the one I ended getting. It was exactly what I wanted. - user13200
(3) Someone should edit this link, so that the name of the book becomes obvious. Currently it's encoded in URL. - Rene Saarsoo
2
[+86] [2008-09-16 17:48:46] Gern Blandston

I've found these two books to be universally embraced:

JavaScript: The Definitive Guide [1] by David Flanagan

and

JavaScript: The Good Parts [2] by Douglas Crockford

You might also be interested in viewing Crockford speak over at Yahoo Video:

Douglas Crockford: "Chapter 1: The Early Years" 1 of 8 [3]

Douglas Crockford: "Chapter 2: And Then There Was JavaScript" 2 of 8 [4]

Douglas Crockford: "Chapter 3: Function the Ultimate" 3 of 8 [5]

Douglas Crockford: "Chapter 4: The Metamorphosis of Ajax" 4 of 8 [6]

Douglas Crockford: "Chapter 5: The End of All Things" 5 of 8 [7]

Douglas Crockford: "Chapter 6: Loopage" 6 of 8 [8]

Douglas Crockford: "Chapter 7: ECMAScript 5: The New Parts" 7 of 8 [9]

Douglas Crockford: "Chapter 8: Programming Style and Your Brain" 8 of 8 [10]

[1] http://rads.stackoverflow.com/amzn/click/0596101996
[2] http://rads.stackoverflow.com/amzn/click/0596517742
[3] http://www.youtube.com/watch?v=JxAXlJEmNMg&feature=plcp
[4] http://www.youtube.com/watch?v=RO1Wnu-xKoY&feature=plcp
[5] http://www.youtube.com/watch?v=ya4UHuXNygM&feature=plcp
[6] http://www.youtube.com/watch?v=Fv9qT9joc0M&feature=plcp
[7] http://www.youtube.com/watch?v=47Ceot8yqeI&feature=plcp
[8] http://www.youtube.com/watch?v=QgwSUtYSUqA&feature=plcp
[9] http://www.youtube.com/watch?v=UTEqr0IlFKY&feature=youtube_gdata_player
[10] http://www.youtube.com/watch?v=taaEzHI9xyY&feature=youtube_gdata_player

How do The Definitive Guide and The Good parts differ in approach/style and language coverage? - Sam Hasler
Oo, Douglas Crockford recommends The Definitive Guide as the "least bad" JavasScript book in the first video - Sam Hasler
(6) Crockford has his opinions, and he can keep them. I don't know who died and proclaimed him God of JavaScript, but he sure thinks he is. Granted, the man knows JavaScript, but like anything, there are certainly things he believes that not everyone agrees on... - Jason Bunting
Sam: Douglas Crockford is the author of Javascript: The Good Parts. It was published in 2008, a year after these videos were recorded. - pix0r
(5) I must disagree with Jason, I've never gotten the impression Crockford thinks of himself in this way, I think he always clearly states when its a personal opinion, and never claims any false authority. I found the videos the perfect intro to the language for a c++/java programmer as myself trying to get a feel for the language. I was trying to understand a specific piece of code, and after seeing them, I now clearly do. Thx for the links. - Emile Vrijdags
Crockford has strong opinions, but he does fully explain and back each of them and I like it - Koka Chernov
yuiblog.com/crockford working video links here - Jamo
3
[+30] [2010-12-04 16:51:39] Trufa

Here is a list of all the recommendations (with at least one upvote):

You might also be interested in this videos:

Suggested by: Gern Blandston [21]

Videos now on: http://yuiblog.com/crockford/ Thanks @jamo [22]

[1] http://www.amazon.com/s/ref=nb_ss_gw/002-3712822-3124817?url=search-alias%3Daps&field-keywords=oreilly+javascript+the+definitive+guide
[2] http://stackoverflow.com/questions/74884/good-javascript-books/74903#74903
[3] http://rads.stackoverflow.com/amzn/click/0596517742
[4] http://stackoverflow.com/questions/74884/good-javascript-books/74933#74933
[5] http://jspro.org/
[6] http://stackoverflow.com/questions/74884/good-javascript-books/75468#75468
[7] http://eloquentjavascript.net/
[8] http://stackoverflow.com/users/12038/marijn
[9] http://rads.stackoverflow.com/amzn/click/0321423305
[10] http://stackoverflow.com/questions/74884/good-javascript-books/1723319#1723319
[11] http://www.ecma-international.org/publications/standards/Ecma-262.htm
[12] http://stackoverflow.com/users/4010/user4010
[13] http://ajax.phpmagazine.net/2008/07/object_oriented_javascript_boo.html
[14] http://stackoverflow.com/questions/74884/good-javascript-books/76853#76853
[15] http://www.manning.com/resig/
[16] http://stackoverflow.com/questions/74884/good-javascript-books/74962#74962
[17] http://video.yahoo.com/watch/111593
[18] http://video.yahoo.com/watch/111594/1710553
[19] http://video.yahoo.com/watch/111595/1710607
[20] http://video.yahoo.com/watch/111596/1710658
[21] http://stackoverflow.com/questions/74884/good-javascript-books/75008#75008
[22] http://stackoverflow.com/users/977939/jamo

video links are currently dead... - Jamo
@Jamo thanks!!! - Trufa
yuiblog.com/crockford working links here - Jamo
Thanks, edited! Remember it's a community wiki, you can pitch in yourself at any point! - Trufa
4
[+25] [2008-09-16 18:28:58] squadette
5
[+13] [2008-09-16 21:33:31] Marijn

Not a paper-based book, but Eloquent JavaScript [1] fits the rest of your description -- and has a built-in JS console for immediate programming gratification.

[1] http://eloquentjavascript.net

Now this IS a paper based book after all - Zach L
I loved eloquent javascript.Not only it is very educative but its fun to read as well. - Akshat Jiwan Sharma
6
[+7] [2009-11-12 16:02:48] Bob

ppk on JavaScript [1] has to be the best JavaScript book I have read. This is from the guy that runs quirksmode.org [2].

quirksmode book cover

[1] http://rads.stackoverflow.com/amzn/click/0321423305
[2] http://www.quirksmode.org/

7
[+6] [2008-09-16 20:41:52] user4010

Take a look at ECMA-262, the official specification for ECMAScript [1] (*cough* JavaScript) syntax, semantics, and core objects. Bear in mind it does not cover web-specific objects or interfaces (e.g. the DOM in its various forms), as these are outside of the language proper.

It has downsides:

  • It's not a printed document as you requested, unless you print it yourself.
  • It's verbose and not terribly well-written. For instance, many of the specifications are listed in algorithmic steps rather than described in prose (e.g. "1. Let x be the foo value; 2. Shift x by three bits to the left; ...").
[1] http://www.ecma-international.org/publications/standards/Ecma-262.htm

8
[+5] [2008-09-16 17:40:01] Dana

I thought JavaScript: the Definitive Guide was a nice one.

http://oreilly.com/catalog/9780596101992/index.html


9
[+5] [2008-09-16 17:42:54] talg
[1] http://rads.stackoverflow.com/amzn/click/0596101996

He's John Resig (without "n") - squadette
10
[+5] [2008-09-16 19:20:14] Don Cote

I found this book to be pretty good at getting to the core of the language:

Professional JavaScript for Web Developers [1]

[1] http://rads.stackoverflow.com/amzn/click/0764579088

(1) This is by far my favorite book on JavaScript, and perfect for folks who are using the language already but want a better understanding of it. I'd vote for it 5 times if I could. - Marcus
great book ,,, thanks - tito11
11
[+3] [2008-09-16 20:46:02] wookie

This is a really good book:

Object oriented javascript [1]

[1] http://ajax.phpmagazine.net/2008/07/object_oriented_javascript_boo.html

12
[+3] [2011-09-12 22:23:25] Bryan Menard

JavaScript Patterns [1]

enter image description here

JavaScript Patterns [2] is a good intermediate-advanced book. While this book hovers over some of the language features, it concentrates on how to implement common patterns, the JavaScript way. A must read for anybody serious about JavaScript.

This book is best read after Crockford's JavaScript: The Good Parts [3].

[1] http://rads.stackoverflow.com/amzn/click/0596806752
[2] http://rads.stackoverflow.com/amzn/click/0596806752
[3] http://rads.stackoverflow.com/amzn/click/0596517742

13
[+2] [2008-09-16 17:58:54] Novaktually

Javascript: The Good Parts [1]

[1] http://oreilly.com/catalog/9780596517748/

14
[+1] [2009-06-26 04:41:36] Nosredna

JavaScript: The Missing Manual [1]

JavaScript: The Missing Manual

This one surprised me. It's great. Covers JavaScript and also jQuery. Very practical.

[1] http://rads.stackoverflow.com/amzn/click/0596515898

15
[+1] [2011-09-29 22:22:22] Grace Shao

Besides Crockford's The Good Parts [1], I like Nicholas Zakas' High Performance JavaScript [2].

[1] http://rads.stackoverflow.com/amzn/click/0596517742
[2] http://rads.stackoverflow.com/amzn/click/059680279X

16
[+1] [2011-12-03 04:50:57] xerophyte

You can find good books on javasscript at http://www.goodbookson.com/index.php/category/javascript/


17
[0] [2008-09-16 17:39:30] Chuck

Book: I like the Rhino book [1]

i know you asked for books but I love the sample code at Doc JavaScript http://www.webreference.com/js/

[1] http://rads.stackoverflow.com/amzn/click/0596101996

18
[0] [2008-09-16 17:42:50] Alejandro Bologna

Javascript: The definitive guide [1] explains the core JavaScript language in detail

[1] http://oreilly.com/catalog/9780596101992/?CMP=AFC-ak_book&ATT=JavaScript%3A+The+Definitive+Guide

19
[0] [2008-09-16 17:42:53] Rob Allen

For the most part, I am familiar with basic syntax or can look that up easily. It tends to be the properties and built-in functions I really struggle to find a good reference for. That's why I try to snag the O'Reilly Pocket reference for every language I have to work in. The JavaScript [1] one is particularly handy.

[1] http://rads.stackoverflow.com/amzn/click/0596004117

20
[0] [2008-09-16 17:51:48] catfood

JavaScript Pocket Reference by David Flanagan, published by O'Reilly. ISBN 0-596-00411-7.


21
[0] [2008-09-16 18:44:39] aekeus

JavaScript: The Definitive Guide

and

JavaScript: The Good Parts


22
[0] [2008-09-16 20:07:52] rand

Yahoo has a very good series of lectures on Javascript by Douglas Crockford —

The JavaScript Programming Language [1]

[1] http://video.yahoo.com/watch/111593/1710507

23
[0] [2008-09-17 03:14:01] ages944

I personally have the second edition, but this book was fantastic.

Beginning Javascript [1]

[1] http://www.wrox.com/WileyCDA/WroxTitle/Beginning-JavaScript-3rd-Edition.productCd-0470051515.html

24
[0] [2011-03-28 11:17:51] chapagain
25
[-9] [2008-09-16 17:42:11] Vaibhav

w3Schools [1] has one of the simplest material.

[1] http://www.w3schools.com/js/default.asp

(2) Theres some pretty confusing explanations on there too unfortunately - namely w3schools.com/jsref/jsref_prototype_math.asp - Dr. Frankenstein
(13) Oh please, don't recommend W3Schools (which is not affiliated to the W3C): it contains lots of horrible examples, bad practices and simply incorrect statements. Use something more solid instead, like MDC. - Marcel Korpel
not at all its not even good for begginr - NullPointer
(2) W3fools is relavant here: w3fools.com - 18bytes
+1. even if it has many issues, it is good for beginners. - habeebperwad
26