I have this code:
var prop = $ ('body);
Does the 'prop' allocate more memory space or is it just referencing the element?
I have this code:
var prop = $ ('body);
Does the 'prop' allocate more memory space or is it just referencing the element?
"prop" in your example is just a reference object. It only occupies space to store information like location of element in the DOM, element properties and inherited functions.