I\'m trying to create an array that maps strings to variables. It seems that the array stores the current value of the variable instead of storing a reference to the variabl
Put an object into the array instead:
var name = {}; name.title = "foo"; var array = []; array["reference"] = name; name.title = "bar"; // now returns "bar" array["reference"].title;