This website requires JavaScript.
Explore
Help
Sign In
gaspersic
/
freeCodeCamp
Watch
1
Star
0
Fork
0
You've already forked freeCodeCamp
Code
Issues
Pull Requests
Projects
Releases
Wiki
Activity
Files
7b51ec6487bb33696888fe8911f69df826342c00
Branches
Tags
View all branches
freeCodeCamp
/
guide
/
english
/
certifications
/
javascript-algorithms-and-data-structures
/
basic-javascript
/
decrement-a-number-with-javascript
/
index.md
Mrugesh Mohapatra
da0df12ab7
fix(guide): simplify directory structure
2018-10-16 21:32:40 +05:30
331 B
Raw
Blame
History
title
title
Decrement a Number with JavaScript
Decrement a Number with JavaScript
Decrement a number using the '--' operator:
var a = 5; a--; // Now, 'a' is 4 --a; // Now, 'a' is 3