Thursday, December 01, 2005

Javascript associative array length


var fooArray = new Array();
fooArray["a"]="a";
fooArray["b"]="b";
fooArray["c"]="c";
alert(fooArray.length);
Guss what the result is here? It's 0.

No comments: