Advertisement
sissou123

Untitled

Mar 22nd, 2022
899
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. Increment a Number with JavaScript
  4. You can easily increment or add one to a variable 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.  
  14. for more:https://www.clictune.com/ey5J
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement