With JUCE Javascript it seems that this functionality is not supported. dynamicTable["mp"] will output a value of 3; no matter what is between the brackets, the last value given is the value outputted.
Your code - while technically valid - is “inappropriate usage of Javascript arrays” (see this site - under “What about Associative Arrays?”). Your dynamicTable is an array and not an associative container.
For example, your code will result in an unexpected length of your dynamicTable -> 0.
By doing dynamicTable["p"] = 0; you really are just assigning a property to an object. You can do that to any javascript object - for example a boolean.
but that’s not user friendly. I need a straightforward user friendly way to do this. If there is no way to do this in javascript then just let me know, I’ll see if I can come up with some kind of built-in functions for my program.
Sorry for the late reply. Yesterday, we’ve made some fixes to the javascript interpreter to support this. Jules is currently reviewing the code. We will push this to develop as soon as it is ready.