Performing shorthand arithmetic
While it’s possible to perform simple arithmetic operations by repeating the use of variables, shorthand notation provides a much more efficient way of writing the same operations.
In the examples below, notice not once do I repeat a variable to perform an operation (increment, decrement, etc.).
Instead of writing “value = value + 1,” I write “value += 1,” thus, saving syntax from needless repetition.