I am creating 3 objects of the same name and options, but they can have varying values. These objects are being dynamically created based on a user's input, so I am unable to name them differently, as I am trying to reference them based on their count, or by an incremented value.
My issue right now is that I create 3 objects at the same time, similar to this:
var contentformat = { name:"Test Title 1",
description:"A 5 minute video",
icon: ""
};
var contentformat = { name:"Test Title 2",
description:"A 3 minute video",
icon: ""
};
var contentformat = { name:"Test Title 3",
description:"A 10 minute video",
icon: ""
};
But if I check them in my console, it only shows the "test title 3" object. Is there a way I can have these multiple objects (or increment them on creation?)
.push()the objects into it.