# TS2357: The operand of an increment or decrement operator must be a variable or a property access.

> `++` or `--` is applied to something that isn't a variable or property, such as a call or a literal. Assign to a variable instead.

## What it means

Increment and decrement change their operand, so the operand must be something that can be
assigned to: a variable, a property or an element access.

## Example

```ts
function count(): number {
  return 1;
}

count()++;
```

## How to fix

- Store the value in a variable and increment that.

Source: https://ts-r.dev/errors/TS2357/
