Advertisement
sissou123

Untitled

Mar 22nd, 2022
936
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. JavaScript Algorithms and Data Structures
  2. Basic JavaScript
  3. Decrement a Number with JavaScript
  4. You can easily decrement or decrease a variable by one with the -- operator.
  5.  
  6. I--;
  7. is the equivalent of
  8.  
  9. i = i - 1;
  10. Note: The entire line becomes I--;, eliminating the need for the equal sign.
  11.  
  12. Change the code to use the -- operator on year.
  13. let myVar = 11;
  14.  
  15. // Only change code below this line
  16. myVar = myVar - 1;
  17.  
  18. for more:https://www.clictune.com/ey5K
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement