Created
January 19, 2019 23:03
-
-
Save Tombarr/a424d1d60130a59983d2a730c687a4f5 to your computer and use it in GitHub Desktop.
Increment/ decrement in Javascript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let n = 10; | |
n--; // same as n -= 1; | |
n++; // same as n += 1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment