{name : value} notation for arrays in Javascript

neetAcittynag

New Member
I'm trying to do this for a multidimensional array and can't figure out why it doesn't work for a single dimensional array:\[code\]function doArray() { var msg = []; msg.push({entryID : "test"}); alert(msg[entryID]);}\[/code\]I get undefined when I try to alert it. What's wrong here? Thanks.
 
Top