+加法
exp-1
1 | let x = 100 + 50; |
exp-2
1 | let a = 100; |
exp-3
1 | let a = 3; |
- 減法 Subtracting
1 | let x = 5; |
* 乘法 Multiplying
1 | let x = 5; |
/ 除法 Dividing
1 | let x = 5; |
餘數Remainder
1 | let x = 5; |
遞增 Incrementing
1 | let x = 5; |
遞減 Decrementing
1 | let x = 5; |
指數運算 Exponentiation
1 | let x = 5; |
Math.pow(基底數, 指數)
Math.pow(base, exponent)
1 | let x = 5; |