I have a for loop in which I am getting all the values one by one but I need to form those values into one array. 

Can any one let me know how to get form all the values into one array.

```
for (var i = 0; i < marray.length; i++) {
    mId = marray[i].id;
    var yourArray = [];
    yourArray.push(marray);
    console.log(marray);
}

```

Output getting from the above code is : `["0123"] and ["3456"]`

```
But the expected output is ["0123","3456"]

```