Changes

JavaScript Operators

2 bytes added, 13:33, 30 May 2007
Unary Operators - Incrementing and Decrementing Variable Values
</pre>
These operators can also be used increment and decrement a value after an expression as been performed. Suppose you have a varable variable ''x'' which has been assigned a value of 5. You want to add the value of x to a varable variable called y and then decrement x by 1. One way to do this is as follows:
<pre>