Let's consider the following is my object:

```
var n = {"aa":"x","dd":'d'};

```

I am using square brackets in `Object.assign`. It gives the following result. `[aa: "x", dd: "d"]`. The final code is: 

```
var n = {"aa":"x","dd":'d'};
var m = Object.assign([],n);

// result is 
[aa: "x", dd: "d"]

```

in the console.log `__proto__` tells this is Array, if it is array following code giving the, `unexpected token error` 

```
var v = ["sss":"ddd","ccc":"ddd"]; 

```

What does mean?

[![enter image description here](https://i.stack.imgur.com/bUFcU.png)](https://i.stack.imgur.com/bUFcU.png)