Question: I have an array:

```
for (i = 0; i < this.platforms_values.length; i++){

    platform_project: [
         {owner_id: owner_id},
         {project_id: project_id},
    ]

    platform_project.push(this.platforms_values[i])
}

```

However it gives me this:

```
platform_project is not defined

```

Answer: 
Looks like you're doing 2 things wrong.

1) creating a new object at every instance of the loop

2) using a colon instead of an equals for assignment

```
const platform_project = [
     {owner_id: owner_id},
     {project_id: project_id},
];
for (let i = 0; i < this.platforms_values.length; i++) {        
    platform_project.push(this.platforms_values[i])
}

```
This is not the correct way to declare variable. You need to use either `var`, `let` or `const`, and an `=` sign.

Also, your variable is redeclare each time you loop, so it become useless. You should declare it before the loop.

```
const platform_project = [
         {owner_id: owner_id},
         {project_id: project_id},
]

for (i = 0; i < this.platforms_values.length; i++){
    platform_project.push(this.platforms_values[i])
}

```