mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-01 08:05:25 -05:00
fix(curriculum): updated description for step 154 of RPG game (#53527)
This commit is contained in:
@@ -7,7 +7,13 @@ dashedName: step-155
|
||||
|
||||
# --description--
|
||||
|
||||
Remember that the increment operator `++` can be used to increase a variable's value by 1. There is also a <dfn>decrement operator</dfn> `--` that can be used to decrease a variable's value by 1.
|
||||
Remember that the increment operator `++` can be used to increase a variable's value by `1`. There is also a <dfn>decrement operator</dfn> `--` that can be used to decrease a variable's value by `1`. For example :
|
||||
|
||||
```js
|
||||
let num = 10;
|
||||
num--;
|
||||
console.log(num); // Output: 9
|
||||
```
|
||||
|
||||
Decrement the value of `currentWeapon` in your `if` statement, after you update the text.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user