Is it necessary to learn JavaScript before jQuery?
-
2I'd at least learn to spell the language first...Tim Down– Tim Down2009-10-28 17:04:47 +00:00Commented Oct 28, 2009 at 17:04
-
possible duplicate of Is it a good idea to learn JavaScript before learning jQuery?user4098326– user40983262015-05-08 08:55:44 +00:00Commented May 8, 2015 at 8:55
6 Answers
jQuery is a JavaScript library. To be able to use it, you need to know JavaScript.
It is possible to pick up JS as you learn jQuery, but this is a terrible approach that will leave you confused about what is JavaScript and what is jQuery.
3 Comments
Yes. Unless you understand Javascript's approach to objects, passing functions, the "this" identifier, and other language specific constructs, you won't be able to understand the prototypes for jQuery functions.
I'm teaching myself both at the same time, but it would certainly help to know Javascript basics (at least) before starting with jQuery.
Comments
It's a good idea to know the basics of JavaScript, but you don't need in depth knowledge of it to use JQuery. It's like programming with any other framework. It will do a lot for you, and you can fumble through it with only knowing a little bit of the underlying language, but sooner or later, you'll probably run into a situation where having a good grasp of JavaScript will be helpful.
Comments
Given that jQuery is a library of JavaScript code, meant to ease development of JavaScript applications that interact with web browsers/content, I'd say yes. Now, you could learn both at the same time, like many people have learned Ruby in order to learn Rails. But they're kind of inseparable.