Say I had the following markup:
<div></div>
<div></div>
<div></div>
And I use the following to retrieve them:
var divs = $('div');
How is it possible that I am able to retrieve the respective DOM element by using the [] syntax and also be able to call methods on the jQuery object such as .first()?
var div_one = divs[0];
I'm asking this question because it looks to me that divs is a jQuery object, not a true JavaScript Array object.
How does this work?