Js Numbers
Js Numbers
5 Number (Integer)
'3.1376' String
"12" String
Convert Strings to Numbers
+ Addition 5+5
- Subtraction 5-5
* Multiplication 5*5
/ Division 5/5
** Exponent 5 ** 2
1. Parentheses
2. Exponent
3. Multiplication
4. Division
5. Addition
6. Subtraction
Arithmetic Precedence
+= x += 5 x=x+5
-= x -= 5 x=x-5
*= x *= 5 x=x*5
/= x /= 5 x=x/5
**= x **= 2 x = x ** 2
%= x %= 5 x=x%5
Increment / Decrement
Adds / Subtracts 1 to a variable