var I is a variable,
var arr = [];
I want to implement that I is a number, so I add the empty object {name:""} of name to my empty array a few times.
for example, if I is 1
, then arr = [{name:""}]
such as I is 2
arr = [{name:""}, {name:""}]
such as I is 3
arr = [{name:""}, {name:""}, {name:""}]
.