Frenkieb
12-13-2005, 10:08 AM
Hi everybody,
first post, first question.
I have the following code:
<script type="text/javascript">
var arrTest = new Array();
arrTest["item_1"] = 1;
arrTest["item_2"] = 2;
alert(arrTest.length);
</script>
Now, I would say the length of the array is '2' but the alert says '0'. Why?
first post, first question.
I have the following code:
<script type="text/javascript">
var arrTest = new Array();
arrTest["item_1"] = 1;
arrTest["item_2"] = 2;
alert(arrTest.length);
</script>
Now, I would say the length of the array is '2' but the alert says '0'. Why?