I have this:
var hash=new Array();
hash['a']='some_value';
hash['b']='some other value';
Whar do you call that in javascript?
I know it's possible to define this in one line, but I've forgotten how.
Something like:
var hash=new Array('a':'some value','b':'som e other value') ???
Jeff
var hash=new Array();
hash['a']='some_value';
hash['b']='some other value';
Whar do you call that in javascript?
I know it's possible to define this in one line, but I've forgotten how.
Something like:
var hash=new Array('a':'some value','b':'som e other value') ???
Jeff
Comment