Both count() and sizeof() returns number of elements in an array. sizeof() is an alias of count().
Tag Archives: #length
How to find the length of an associative array in javascript
Associative array is an array with named indexes. In Javascript, there is no concept called associative arrays. In javascript we call them as objects. Below is an example to find the length of the object.