```
const obj = {'name1':true, 'name2': false, 'name3':true}

```

I have a `onclick` function in that I will be getting the `name` based on this `name` I need to change the object name value if it is `true` i need to change to `false` if it `false` change to `true`

Note: this should be happen based on the click only 

my output should be

```
const obj = {'name1':true, 'name2': true, 'name3':true}

```