I have a variable which is an array and I want every element of the array to act as an object by default. To achieve this, I can do something like this in my code.
Use array.push() to add an item to the end of the array.
var sample = new Array(); sample.push(new Object());
you can use it
var x = 100; var sample = []; for(let i=0; i