Topic awaiting preservation: JavaScript Associative Array? (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Dublin, TX, USA |
posted 09-30-2003 04:54
Hi, |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 09-30-2003 05:05
do you have a sample? |
Paranoid (IV) Inmate From: France |
posted 09-30-2003 05:42
I think Dick Ulrich rather meant something like: code: myArray = new Array() Indeed length is a property of the Array object and cannot be overwritten with something that is not numerical. In Javascript, Array's and Object's properties / values can be accessed either via : |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 09-30-2003 07:30
One should note that, internally, arrays and objects are the *same thing*. So, these two things are equivalent: |
Bipolar (III) Inmate From: Dublin, TX, USA |
posted 09-30-2003 07:40
Mathieu "POÏ" HENRI most eloquently laid it out, unlike all of the documentation on the web about Javascript Associative Arrays. |