Forum Moderators: open
[blue]length[/blue] property. The first complication comes when you consider that an array may have undefined values. Then you consider that JS arrays are really little more than collections of name/value pairs. It is possible for arrays to have non-contiguous, non-integer, or negative indices, or indices that aren't numbers.
All told, the solution depends very much on the exact nature of the question.