You only need one line of code. Also, in that one line of code, you don’t need to reassign with an equals sign. That’s the whole point of the decrement
The codes after the comment are wrong. The operator in use here is the decrement operator --. Therefore, all you need is myVar --;. When expanded, the code looks like this;
myVar = myVar - 1;
The decrement operator handles both decreasing the value of the operand by one and reassigning that value to the operand