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"]};