Need one help.
I have two strings in two different variables;
var var1 = "Myname";
var var2 = "Myage";
var jsonObj = ?
console.log(jsonObj);
I would like to have the console output of "jsonObj" into a JSON object(not a key value pair) created from these strings in the below format;
{"Myname":"Myage"}
Please let me know how can achieve this?