Unlock all of us!3.86 / 5.00 30,714 Views
As DD's story comes to a close, another looms from the not-so-distant shadows....3.86 / 5.00 7,416 Views
Blast at rockets with awesome graphics and music3.90 / 5.00 8,355 Views
Learning from a book for both would be best. I can't think of any offhand, but most books you find will probably be a solid resource; the more recent the better.
Also, in your browser, you'll want to use "developer tools". If you are using Google Chrome, this is a press of the F12 key away. You'll spend most of your time here in the "Console tab". You can try one-liners of code in there to get direct output. If you are working from a script, you can send output there as well using the following:
console.log('output goes here');
If you are using Firefox, you'll want to install Firebug for the same functionality.
If you are using Internet Explorer, you'll probably want to change browsers.
That reminds me Douglas Crockford also did a lecture on the subject. It's a good talk; I recommend it.
At 2/19/13 05:38 AM, Mich wrote: I also recommend using JsFiddle for when you are learning and experimenting. It makes it very easy to try things out.
Agreed, jsfiddle is great.
There's also JS Bin which basically does the same thing, but in a different way; I find JS Bin is a bit better for more complicated tests though.