Let's say I have an array with variable names:
var array = [a, b, c];
How can I assign a value to the variable names stored in this array? For example I want to assign a value of 5 to "a".
I managed to do this in Python by:
globals()[Array[0]]=value
I would like to achieve the same result in JavaScript.
Thanks a lot