JavaScript jQuery Basics Working with jQuery Collections jQuery-Specific Selectors

Amandeep Pasricha
Amandeep Pasricha
14,928 Points

Collection of DOM elements vs Jquery objects?

I don't understand what the difference was here. She was talking about differences in what Javascript vs Jquery returned.

1 Answer

Clayton Perszyk
MOD
Clayton Perszyk
Treehouse Moderator 46,109 Points

The browser uses JavasScript DOM objects to render the webpage. jQuery objects are wrappers around one or more DOM elements, and allow access to the DOM elements in a more effective way.

this article expands upon the differences further:

https://howtodoinjava.com/jquery/javascript-dom-objects-vs-jquery-objects/