[thelist] Q on assoc arrays
jsWalter
jsWalter at torres.ws
Fri Dec 12 14:50:21 CST 2003
In Perl I can do this...
( 'ac' -> 'Ascension Island',
'ad' -> 'Andorra',
'ae' -> 'United Arab Emirates',
'af' -> 'Afghanistan'
)
Does any one know if JavaScript has a similar "feature"?
I would rather not have to do...
myArray['ac'] = 'Ascension Island';
myArray['ad'] = 'Andorra';
myArray['ae'] = 'United Arab Emirates';
myArray['af'] = 'Afghanistan';
Just me being picky.
Thanks
Walter
More information about the thelist
mailing list