In JavaScript, I\'ve created an object like so:
var data = { \'PropertyA\': 1, \'PropertyB\': 2, \'PropertyC\': 3 };
Is it poss
Here, using your notation:
var data = { 'PropertyA': 1, 'PropertyB': 2, 'PropertyC': 3 }; var propName = 'Property' + someUserInput //imagine someUserInput was 'Z', how can I now add a 'PropertyZ' property to //my object? data[propName] = 'Some New Property value'