(To learn javascript of course.)
To run your JavaScript I recommend using gist or github pages. With gist you just make a gist and then replace the gist.github.com part of the url with bl.ocks.org it will automagically run your code.
-
Basics -- Hey this is probably better than codeacademy any day.
-
MDN Canvas Tutorial -- Drawing stuff to the screen. Sort of like pygame.