Is there a way to create an object using literals like this?
newObject.object[0].time = 1200;
When attempting the following code, I encountered an error:
var newObject = {
object[0].time: 1200
};
Any insights on how to construct such objects using literals?