Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript Object-Oriented JavaScript (2015) Constructor Functions and Prototypes Methods with Prototypes

Daniel Gonzalez
Daniel Gonzalez
5,312 Points

JQuery in Object Oriented JavaScript?

I've completed watching the course for OOJS and am now going back for review. I was wondering, is it common to use JQuery in OOJS? It seems like things would run much better and you'd have much cleaner code if you followed OOJS concepts with JQuery for DOM manipulations.

1 Answer

Jordan Watson
Jordan Watson
14,738 Points

Well ideally I think that is the point in a library that is jQuery. It has its quirks that allow you to easily manipulate the DOM and traverse with ease. Its powerful which also makes it easier to select elements on the page and storing them in variables as objects that can be referred to later. Generally speaking learning or using jQuery tends to be easier for some than RAW JavaScript its personal preference wether or not to use jQuery in your workflow.