Operators
- Minus Operator
On the following example it is used as mathematical minus operator and result is 1
CODE
Using double minus means decreasing the actual number 2 and result is 1
CODE
Using double minus before the variable means multiplying with -1 and result is 2
CODE
- Comment Your JavaScript Code
- Declare Variables
- Data Types
- Type Conversions
- + Plus Operator
- - Minus Operator
- * Multiply Operator
- * Multiply Operator (1)
- % Modulus (Division Remainder) Operator
- ** Exponentiation Operator
- Bitwise operators
- Comparisons
- Logical Operators
- Interaction: alert, prompt, confirm, console.log
- The "switch" statement
- Loops: while, do while and for