freeCodeCamp Challenge Guide: Decrement a Number with JavaScript

Decrement a Number with JavaScript


Hints

Hint 1

Decrement a number using the ‘–’ operator:

var a = 5;
a--; // Now, 'a' is 4
--a; // Now, 'a' is 3
5 Likes