4 ms·
Best 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 automat
by peregrine 15y ago
Best 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 might as well learn jQuery because it will do a huge chunk of your basic practical needs. If you are learning javascript to really understand the language or build something super complex you may wanna watch the crockford videos and understand prototypes and those things. Otherwise jQuery will probably cover you.
- spjwebster 15y agoI'd advocate learning JavaScript, learning the DOM and BOM, and only then learning a JavaScript framework like jQuery or YUI. Sooner or later you'll need to do some pure JavaScript development, and you'll need to know how to handle events or traverse the DOM without jQuery holding your hand. I say this as someone who has interviewed candidates for pure JavaScript roles who thought the terms jQuery and JavaScript were interchangeable.
- sunilnimmagadda 15y agoI would prefer learning Javascript (the language) without the distraction of browser. Spidermonkey is available as a package on my OS.
- simonsarris 15y agoFor the record, the dev version (at least) of chrome will now open developer tools with the F12 shortcut, meaning F12 now works in Chrome/FF/IE9