1-write lots of jQuery code. It has a dead simple api; hides most of the ugliness of the language; it slowly introduces you to closures (as opposed to Crockford, who loves them) 2-once you have that, then read Crockford
Learn JavaScript
21–30 of 30 posts
Re: Learn JavaScript
#22I have always wondered–is there an obvious/definitive JavaScript reference site like http://php.net/manual , http://ruby-doc.org , etc.? Is it the mozilla site?
Re: Learn JavaScript
#23Re: Learn JavaScript
#24Re: Learn JavaScript
#25Does anybody have a link to some good JavaScript exercises? One answer is "why don't you just try building something" but I personally learn better from progressing through exercises versus doing the "just build anything" or watching videos.
"Test Driven JavaScript Development", Chris Johansen, might serve. Not many exercises, but it walks through some of the core JavaScript principles, using tests as a learning / exploring device. "Here's a test showing how the > keyword works."
It also walks through several examples of test driven development, touching on design principles as it goes. It does a great job of walking through the practicalities forcing some design choices, and the implications of the alternatives.
I came away from this with a much better grasp of JavaScript, development process, and design principles generally. I don't think I've gotten more from any single book.
But I'm a newbie still trying to learn these things. More experienced folks may find the book tiresome.
Re: Learn JavaScript
#26Best way to learn javascript is to type CTRL+SHIFT+I(in chrome I think its f12 in others) and look at the code. Chrome will even de-obfuscate it for you automatically. Step through the code, maybe write some script in the console, go through some resig tutorials. I really liked looking at the underscore.js literate source but thats a little more theoretical than practical. Also if you are just learning javascript you…
Re: Learn JavaScript
#271-write lots of jQuery code. It has a dead simple api; hides most of the ugliness of the language; it slowly introduces you to closures (as opposed to Crockford, who loves them) 2-once you have that, then read Crockford
Please don't give out advice like this. I'm really fed up with having to deprogramme people who've written too much jQuery and don't actually know JavaScript, or worse, barely realise that there is such a language. I appreciate that your suggestion is to learn jQuery and then go through a language reference, not to stop once you've done the jQuery bit, but trust me, that's just what most people will do. jQuery is a v…
Re: Learn JavaScript
#28I have always wondered–is there an obvious/definitive JavaScript reference site like http://php.net/manual , http://ruby-doc.org , etc.? Is it the mozilla site?
Re: Learn JavaScript
#29Does anybody have a link to some good JavaScript exercises? One answer is "why don't you just try building something" but I personally learn better from progressing through exercises versus doing the "just build anything" or watching videos.
I just put up an interactive javascript tutorial. It starts simple then builds up to passing around functions, closures, continuations. Give it a try and let me know what you think. http://nathansjslessons.appspot.com/