In JavaScript, I\'ve created an object like so:
var data = { \'PropertyA\': 1, \'PropertyB\': 2, \'PropertyC\': 3 };
Is it poss
ES6 introduces computed property names, which allows you to do
let a = 'key' let myObj = {[a]: 10}; // output will be {key:10}