--- title: Subtract One Number from Another with JavaScript localeTitle: 使用JavaScript从另一个数字中减去一个数字 --- ## 使用JavaScript从另一个数字中减去一个数字 使用' - '减法运算符,您可以得到两个数字的差异...... ``` var diff1 = 30 - 14; // Difference is 16 var diff2 = 90 - 60; // Difference is 30 ```