I have an empty object.

```
let obj = {};

```

Now I have some `if` conditions through which I want to assign new properties into my `obj` object

```
If(name = 'Alex) {
obj = {name: 'Alex'}
} else {
obj = {name: 'Bill'}
}

```

But it does not seem to work. I also used `Object.assign({}, name: 'Bill')` for example but it didn't work either. Do you know why is this happening and how to achieve the desired result?