javascript decrease variable by 1 incrementally code example
Example: javascript decrement
// Increment
let a = 1;
a++;
++a;
// Decrement
let b = 1;
b--;
--b;
// Increment
let a = 1;
a++;
++a;
// Decrement
let b = 1;
b--;
--b;