Re: adding elements to an array...



On 30/05/2006 20:59, Vic Sowers wrote:

[snip]

a[-1] = "Zero";
a["Zero"] = -1;

Neither of these will be array elements.

What constitutes an array index has been described several times (both by myself and others).

See, for example:

Author: Michael Winter
Date: 2004-12-07 10:26:36
Message-ID: opsimviozvx13kvk@atlantis

<http://groups.google.co.uk/group/comp.lang.javascript/msg/a7bf8971b33f971e>

in the thread, "Roundup of FAQ change requests".

Mike

--
Michael Winter
Prefix subject with [News] before replying by e-mail.
.



Relevant Pages