Associative arrays in Javascript? -


Currently, I am creating a 3D array in JS using the following:

 
<">" Name ", [" name 2 "," location2 "," data2 "], [" name3 "," location 3 " "," Data 3 "]];

I can use every element using ARR [0] or ARR [1]. But anyway I can use such a key to them: arr ["name1"] Should I give the first one any suggestions? I think I'm looking for a hushmup like functionality.

The only way you can do this is wrapping in one object. Name ":" name2 "," place2 "," data2 "], name 3: ["Name 3", "position 3", "data 3"]};


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -