I understand that there are no associative arrays in JavaScript, only objects.
However I can create an array with string keys using bracket
Arrays and Objects are different things.
For an object, you can do things like:
var obj = { "property1": "value1" }; obj.property2 = "value2";
For arrays, you have to do this:
var arr = []; arr[0] = "value";