I understand that there are no associative arrays in JavaScript, only objects.
However I can create an array with string keys using bracket
You can do what you wanted to do this way:
myNewArray = new Array ({'a' : 200, 'b' : 300})