Pre-Decrement : Prefix operator : Operators JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Operators » Prefix operator »

 

Pre-Decrement








The pre-decrement operator (--) is placed to the left of a variable.

The pre-decrement operator decrements the value by 1.

If the variable is a string, it is converted to a number.





HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Operators
» Prefix operator