MENU
Pre,Post Increment,Decrement
++ and --, when placed in front of a variable, causes the value of the variable to be incremented by 1 and decremented by 1 respectively before the expression is evaluated. Placing them at the back of the variable causes the increment/decrement operation to be carried out after the evaluation. Individually, v++ is identical to v = v+1.
RESETRUNFULL
<!DOCTYPE html><html><body><script>
var n=0;
console.log(n++); // 0
console.log(n++); // 1
console.log(n++); // 2
console.log(++n); // 4
console.log(++n); // 5
console.log(++n); // 6
console.log(n--*3); // 18
console.log(--n*3); // 12
</script></body><html>