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 Introducing ES2015 The Cooler Parts of ES2015 Arrow Functions

Js vs jQuery

When should I use plain JavaScript and when should I use jQuery?

3 Answers

Richard Hall
Richard Hall
9,139 Points

In personal projects, whatever you want.

If you feel proficient in one and want to get better at the other one, practice with it. You can even do both. Make a project in jQuery, then do it again in vanilla JS, Vue, React, etc.

Youmightnotneedjquery is a good site to check for some common examples of things you would normally reach to jQuery to accomplish, but can use vanillaJS for.

Justin Radcliffe
Justin Radcliffe
18,987 Points

I would use jquery to save time and lines of code when implementing complex functionality in apps and user interfaces; and flat javascript when working on a relatively simple website / app with limited functionality.

Thank you guys :) very much appreciated.