I have an array with some existing fields and I need to add a few new fields in that array, below is working
myArray.myNewField1 = "someValue";
but I need that field's name should have spaces in between them or some special characters like space or #$% and so and I tried below and it showing some syntax error;
myArray.["myNew Field #1"] = "someValue";
Is it allowed to create any attributes names with special characters in Javascript?
myArray["myNew Field #1"]