[Solved] I want to make Javascript object dynamic
At first your code: var obj = {[“Value1”]: “Value2”}; is wrong. You have to write: var obj = {“Value1”: “Value2”}; or var obj = {Value1: “Value2”};. And then if I understood you correctly: in your comment you wrote: I wana get Value1 in double quotes too dynamic means I want dynamic index too in double … Read more