What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 7596 |  Welcome, Guest!   Register  Login
 Home > Interview Questions > jQuery Interview Questions > What is the difference between jquery.si ...

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


Answer:

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
Akiii

Found interesting? Add this to:


>> Write Response - Respond to this post and get points

Even more ... | Submit Interview Questions and win prizes!

More Interview Questions from Akiii

Even more ... | Submit Interview Questions and win prizes!


About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/25/2013 10:38:37 AM