Scripter Javascript Tutorial
javascriptmusiclogicscripterbookexcerpttutorial25 Increment, Decrement, Exponentiation
MDN: Expressions and Operators: Exponentiation
The Increment (++), Decrement (– –), and Exponentiation (**) operators are useful for basic operations without needing a new variable or assignment:
var pitch = 60;
= pitch + 1; // 61
pitch ++ // increment to 61
pitch-- // decrement to 60
pitch** // exponent to 3600 pitch