1)jquery.size() 2) jquery.length Which is faster?

Options
- 1
- 2


CORRECT ANSWER : 2

Discussion Board
jquery.size() 2) jquery.length Which is faster?

Both return number of elements but length is faster than size() because length is a property , where as size is a method which has overhead of function call

Ashish Maheedhara 04-21-2017 09:14 AM

discussion

Not sure but .length get last object index

anurag 10-5-2014 03:53 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement