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

JavaScript

Why should I learn javascript if there is jquery? I'm totally new to all this by the way.

I'm going through Jquery basics right now and am wondering; why go through all the trouble of writing lots of javascript code when most of it is pre done anyway? I'm enjoying the learning experience, but am so new to all of this it seems a bit overwhelming. Thanks ahead of time for any responses!

2 Answers

jQuery is just a library built in javascript, you'll still need to know the basics of javascript in order to take advantage of it. While it's true you'll likely never write document.getElementByID again when you can just use the $() method but other concepts like the various types of loops and variable scope will all still be important going forward.

Well, in jQuery, you can write more with less code, but you can’t do everything. jQuery is just a library for javascript and not all javascript features are included. I am doing the front end development track too and I think that learning javascript AND jQuery is the best for a developers toolkit.