To assign a value to a variable is very simple just do it this way
var foo = "bar";
But to assign a name to the variable (dynamically) as you have to do?
var variableName = "newName";
var variableName = "bar"; // in this case assign new value of variableName
Do I have to do it this way?
var foo + "_" + variableName = "foo" // foo_newName = "bar"