Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- JavaScript Algorithms and Data Structures
- Basic JavaScript
- Decrement a Number with JavaScript
- You can easily decrement or decrease a variable by one with the -- operator.
- I--;
- is the equivalent of
- i = i - 1;
- Note: The entire line becomes I--;, eliminating the need for the equal sign.
- Change the code to use the -- operator on year.
- let myVar = 11;
- // Only change code below this line
- myVar = myVar - 1;
- for more:https://www.clictune.com/ey5K
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement