| Applying science to business management |
  
Increment
Format: ++x
x++
Arguments: (node) x Name of an existing node,
variable, object property, or list element
Returns: (num) x++ returns the value of x
++x returns the value of x plus one
Description: Both x++ and ++x increment
the value of x by one. x++ returns the value of x
before it was incremented while ++x returns the value
after it is incremented.
Examples: var x=5; = x
= 5
y=x++ = x = 6 and y = 5
var x=5; = x = 5
y=++x = x = 6 and y = 6
See Also: Decrement,
Add
|