Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- JavaScript Algorithms and Data Structures
- Basic JavaScript
- Increment a Number with JavaScript
- You can easily increment or add one to a variable 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 myVar.
- for more:http://besturl.link/MPIK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement