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!
Eloquent Javascript is a pretty great resource, and it also includes an in-browser environment to test out javascript.
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.
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.
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.
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.
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.
I too wondered about good references on how (and more importantly, why) Javascript works behind the scenes. My question on the Stack has some good answers which I found helpful.
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.
crockford does a good job of explaining JS. check out the articles on his website and his new book: