SyntaxFix
Write A Post
Hire A Developer
Questions
You can set an objects property this way:
var obj = {};_x000D_ obj.whateverVarName = 'yourVal';_x000D_ console.log(obj);