What is the difference between jquery.size() and jquery.length ?
Interview question and answer by: Akiii
| Posted on: 5/8/2012 | Category: jQuery Interview questions
| Views: 1033 | | Points: 40
jquery.size() and jquery.length both returns the number of element found in the object. But, jquery.length is faster than jquery.size() because size() is a method but length is a property .
So, there is always an overhead in calling a function.
Thanks and Regards
Found interesting? Add this to: