> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sourcery.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Assignment-Operator

#### Sourcery rule id: `assignment-operator`

#### Description

Replace assignment with assignment operator


#### Before

```javascript
x = x + 1
```

#### After

```javascript
x += 1
```



#### Explanation

The augmented assignment operators, such as `+=` are a more streamlined and easy to understand way
to add values. Using them removes a little bit of repetition and makes the code slightly easier to
understand.
