Preserved Topic: Arrays: Is this healthy? (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Lebanon |
posted 07-31-2001 09:43
in PHP i can do that: |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 07-31-2001 17:46 |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 07-31-2001 18:19
Well, there are two things the [] operator can do in JavaScript. One is access arrays, which you already seem to understand. But there's another thing it can do that may help you out here. |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 07-31-2001 18:21
Oh yeah, one more thing, you'll want to predefine myobj like this: |
Paranoid (IV) Inmate From: Lebanon |
posted 08-01-2001 08:32
Hey guys, |