Categories
JavaScript Tutorials

Combining operators

You can combine assignment operators with the other operators as a shorthand method of assigning the result of an expression to a variable. For example, the following two examples have the same result:

a = a + 10;
a += 10;