TS2364

error TS2364: The left-hand side of an assignment expression must be a variable or a property access.

Broken Code ❌

1
1 = 1

Fixed Code ✔️

Using a variable on the left-hand side assignment:

1
const a = 1;