I tried searching for this but really couldn't find just a super simple answer for this.
I want to be able to create an object with a name that is given by a parameter.
I.e. something like this:
var createThing = function (param) {
var param = new Object();
}
I don't want an object called param rather an object with that is named after the string that is passed in as the parameter. I.e. if someone calls:
createThing(inventoryA);
I want to be able to have an object created called inventoryA