MNGYzQ
A Pen by ilacurcu on CodePen.
License.
var array = []; var object = {}; object.name= "ila1"; object.age= 11; object.time=23; for(var i=0; i<3; i++){ array[i]=object; } console.log(array[1]); object.pip="pippo"; console.log(array[2]);