-1

I have this code:

var prop = $ ('body);

Does the 'prop' allocate more memory space or is it just referencing the element?

1 Answers1

0

"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.

Praveen Alluri
  • 307
  • 2
  • 14