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 Introduction to jQuery Hello, jQuery! Selecting Page Elements with jQuery

Vic Mercier
Vic Mercier
3,276 Points

Could we mix jQuery code and JavaScript code in the same statement?

Because I wrote a statement with those libraries together and it didn't work.

1 Answer

Steven Parker
Steven Parker
229,644 Points

All jQuery code is JavaScript code. When you use jQuery, you are just adding a library of functions to your JavaScript.

But it's important to keep in mind that jQuery uses some unique data structures and the appropriate conversions must be applied when mixing jQuery with other JavaScript code.

Vic Mercier
Vic Mercier
3,276 Points

How do I know when I can or I can't ?

Steven Parker
Steven Parker
229,644 Points

You always can, but you might need to code it differently.

Vic Mercier
Vic Mercier
3,276 Points

Could you answer to my other question in the furum.