fix(curriculum): updated description for step 154 of RPG game (#53527)

This commit is contained in:
Srikanth Kandi
2024-02-04 20:58:03 +05:30
committed by GitHub
parent 7e5a14a4d9
commit e48bf5d59d

View File

@@ -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.