Increment
From Wikipedia, the free encyclopedia
An increment is an increase, either of some fixed amount, for example added regularly, or of a variable amount. For example, a salary may receive an annual increment. A decrease would rather be called a decrement.
Incremental may also refer to gradual change as opposed to massive, instant change.
[edit] Use in science and technology
[edit] Use in programming languages
Incrementing is of constant use in computer programming, such as in loops that iterate through a set of items one at a time.
For example, in JavaScript, the increment operator works like the following:
x++
Where the decrement operator is:
x--
In addition, the increment operator can be written both as x++ and ++x, with separate meanings. For example:
var y = ++x
is shorthand for:
x = x+1 var y = x
however,
var y = x++
is shorthand for:
var y = x x = x+1
--x instead of x-- follows similar behaviour.

