> For the complete documentation index, see [llms.txt](https://iexam.gitbook.io/fcc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://iexam.gitbook.io/fcc/ji-chu/133subtract-one-number-from-another-with-javascriptff08-jian-fa-yun-suan-ff09.md).

# 133Subtract One Number from Another with JavaScript（减法运算）

最后更新时间：2017年7月28日09:44:01

说明：

```
我们也可以在 JavaScript 中执行减法运算。

JavaScript 中使用 - 来做减法运算。

举例

myVar = 12 - 6; // 等于 6
任务
改变数字 0 让变量 difference 的值为 12。

需要使 difference 的值等于 12.
只能修改第一行代码
使用 - 运算符
```

原始代码：

```
var difference = 45 - 0;
```

调试代码：

```
var difference = 45 - 33;
```
