I want to add multiple attributes to an existing object with existing attributes. Is there a more concise way than one line per new attribute?
myObject.name
In ECMAscript 5 you can make us of defineProperties:
Object.defineProperties(myobject, { name: { value: 'don' }, gender: { value: 'male' } });