Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

postfix and prefix increment in javascript

++x           : x is now 2
++x +         : 2 + 
++x + x       : 2 + 2
++x + x++     : 2 + 2 and x is now 3
++x + x++ *   : 2 + 2 *
++x + x++ * x : 2 + 2 * 3
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #postfix #prefix #increment #javascript
ADD COMMENT
Topic
Name
9+6 =