Test with fun how much you know about Art4.06 / 5.00 7,659 Views
Challenge hordes of ninjas in this epic action adventure game.4.12 / 5.00 34,649 Views
Help strange creatures to bring the eye to a mysterious customer.3.75 / 5.00 8,668 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.