JavaScript Cheat SheetExpressions SyntaxJavaScript DatesJavaScript ArraysJavaScript StringsJavaScript FunctionsJavaScript BooleansJavaScript Numbers and MathsJavaScript RegExp ObjectIncrementing /decrementing numbers
Cheat Sheet for JavaScript:
Expressions Syntax
JavaScript Dates
JavaScript Arrays
JavaScript Strings
JavaScript Functions
JavaScript Booleans
JavaScript Numbers and Maths
JavaScript RegExp Object
Incrementing /decrementing numbers
The difference is that ++x (–x) returns the incremented (decremented) value, while x++(x–) returns the previous value of x.