The article discusses a common programming mistake where a user incorrectly tries to compile x + x = x. This syntax fails because '=' signifies an assignment rather than a mathematical equality. Instead, the correct approach is to write x = x + x, which properly assigns the result of adding x to itself back to x. This emphasizes the distinction in programming between mathematical expressions and assignment operations.
You have an invalid left-hand side of an assignment operator. Remember that = in programming is for assignment not the same thing as in math.
If the user is trying to assign a value to x but doing it backwards, x = x + x will work every time - it's doubling the value of x.
Collection
[
|
...
]