What is a good javascript (book or site) that is not just focused on syntax but does a good job explaining how javascript works behind the scenes? Thanks!
-
1Thread from a while back about JS books: http://stackoverflow.com/questions/74884/good-javascript-books#74927 – Dana Jan 19 '09 at 17:43
-
So what do you want? A reference, as stated in your title? Or some book to really learn javascript, as stated in your text? – Rene Saarsoo Jan 19 '09 at 18:57
-
I was using the terms interchangeably .. as in a book is also a reference. I am going to check out the Rhino and Crockford books. As I requested, I mainly want something to provide more behind the scenes insight as opposed to a compendium of syntax. – Sliceoftime Jan 19 '09 at 19:11
9 Answers
The JavaScript resources at the Mozilla Developer Center are pretty nice. They have a guide to JavaScript as well as a a reference.
The guide isn't really that great, but the reference is awesome. If I'm looking for something, I just use google with 'mdc' (or 'mdc javascript' in ambiguous cases) + keyword as search terms.
It might also be a good idea to read the 3 1/2 page long sections 4.2 and 4.3 of ECMA-262. Also, consider reading chapter 10.

- 164,997
- 36
- 182
- 240
-
MDC really works good as a reference, have been using it for quite some time already. Can't imagine anything offline as a reference. – Rene Saarsoo Jan 19 '09 at 18:58
The rhino book is an excellent book to have on your desk.

- 75,535
- 32
- 152
- 208
-
This is THE book. But be sure to get the most recent version (for what I hope are obvious reasons - it's a shape-shifting topic.) – dkretz Jan 19 '09 at 17:50
If you don't want a book that starts with explaining JavaScript syntax, then:
Watch the video lectures of Douglas Crockford in YUI Theater:
Read Pro JavaScript Techniques by John Resig (the author of jQuery library).
- This book already assumes, that you are pretty familiar with JavaScript syntax and goes in-depth to the really hard and important issues you face in your life with JavaScript. It teaches you what goes on under the hood of a JavaScript library like jQuery and how you would go to implement your own.

- 13,580
- 8
- 57
- 85
Eloquent Javascript is a pretty great resource, and it also includes an in-browser environment to test out javascript.

- 9,637
- 6
- 37
- 72
In order of precedence,
- Flanagan's Definitive Guide ("The Rhino Book", which I upvoted above), followed by
- anything written or googled for by Douglas Crockford.
- W3 stuff is great for their try-it-yourself sandboxes.

- 37,399
- 13
- 80
- 138
Others have made some great suggestions (The Rhino Books, Mozilla Developer Center, and references such as W3 Schools). Once you get a good grasp on the language, I highly recommend JavaScript: The Good Parts by Douglas Crockford.

- 15,527
- 5
- 48
- 62
I've always found the w3 schools site excellent for not just for javascript but css and much else web related too. Has a nice combination of quick syntax reference with example code and tutorials for more depth when required.

- 15,733
- 5
- 59
- 112
-
1
-
Because it's the wosrt place to learn the web technologies. http://w3fools.com/ – Alex Turpin Aug 03 '11 at 20:39
-
I have seen A LOT worse than w3schools... I think w3schools is pretty decent for beginners, despite what the criticism at w3fools may say – Mike Nov 15 '11 at 00:53
-
hmmm, yes the criticism at w3fools has a fair bit of validity. However as a quick resource for functions and syntax I'd still say that w3schools is fine. Maybe the educational aspects could do with improving, but I don't think I've ever looked at it for that. – Cruachan Nov 16 '11 at 09:43
Eras ago, I used WebMonkey to edumacate me some. Nowadays I usually just Google around for specifics - most of it is just finding remembering syntax I find anyhow.

- 4,770
- 3
- 35
- 43
crockford does a good job of explaining JS. check out the articles on his website and his new book:

- 1,303
- 8
- 18