decrement operator in js code example Example: decrement operator in javascript // Decrement let b = 1; b--; //post decrement --b; // pre decrement