Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
sibal gesekki
3,484 Pointsjavascript over jquery?
when would i ever use javascript instead of jquery in a website? it seems like the js basics prepared us for the basics of jquery. jquery is just javascript basics + additional animations and stuff. when i talk about jquery, would that mean i am talking about javascript at the same time? if i told someone i do jquery, does that automatically imply i do javascript?
2 Answers
Corey Carter
21,593 PointsJquery is a javacript library. It is still javascript however, it makes things easier to do because those same things you can do with jquery may be a lot more tedious and time consuming doing them with javacript. Jquery saves time and is made for those that want to get things done and not concern themselves with exactly how that particular thing will be done. I hope this explanation makes sense as it is what I understand jquery to be. If you plan to do a lot of javascripting, it is well worth your time to use jquery.
miikis
44,957 PointsJavaScript is much more than jQuery. As Corey Carter said, jQuery is a library written in plain JavaScript; it's meant to complement JavaScript. jQuery facilitates JavaScript tasks — that would otherwise be tedious — for developers, such as: cross-browser compatibility, DOM manipulation, custom event triggers, and much more. But, you should remember that all these things can be accomplished just as well with plain-old JavaScript. So to answer your question: if you tell someone you're proficient in jQuery, it implies that you somewhat know the ins and outs of browser-based JavaScript. But, these days, there's soooo much more to JavaScript; not only is it capable of running server-side, it can also be used to configure hardware. But, that's another topic, for another time, that you might want to google when you feel like it. Good luck :)