I am trying to return an array of object with 50 element inside of it
this what i am looking to achieve
arrayofobject = [
{
id:0,
Email: "Empty Email 0",
Name: "Empty Name 0"
},
{
id:1,
Email: "Empty Email 1",
Name: "Empty Name 1"
}
............
{
id:49,
Email: "Empty Email 49",
Name: "Empty Name 49"
}
]
I used the code below but still not able to achieve the result
var arrayofobject = []
for(var i = 0; i<=50; i++){
arrayofobject.push("id" + i)
arrayofobject.push("email" + i)
arrayofobject.push("name" + i)
}
i tried diffrent approch but i am still having a hard time to get the needed result