I have a global JavaScript object with multiple properties and functions that I am creating it this way:
myObject = {};
I thought that I can easily extend this object by creating something like this
myObject = { propA1 : null, ....., propAN : null};
instead of
myObject.propA1 = null;
myObject......;
myObject.propAN = null;
What's wrong with my approach?