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

Vic Mercier
3,276 PointsCould 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
241,488 PointsAll 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
3,276 PointsVic Mercier
3,276 PointsHow do I know when I can or I can't ?
Steven Parker
241,488 PointsSteven Parker
241,488 PointsYou always can, but you might need to code it differently.
Vic Mercier
3,276 PointsVic Mercier
3,276 PointsCould you answer to my other question in the furum.