# 137Decrement a Number with JavaScript（变量增1）

最近更新时间：2017年7月28日13:08:03

说明：

```
使用 ++ ，我们可以很容易地对变量进行自增或者+1运算。

i++;

等效于

i = i + 1;

提示
i++;这种写法，省去了书写=符号的必要。

任务
重写代码，使用 ++ 来对变量 myVar 进行自增操作。


myVar 应该等于 88
使用 ++ 运算符
不要修改注释上方的代码
```

原始代码：

```
var myVar = 87;

// 请只修改这条注释以下的代码
myVar = myVar + 1;
```

调试代码：

```
var myVar = 87;

// 请只修改这条注释以下的代码
myVar++;
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://iexam.gitbook.io/fcc/ji-chu/decrement-a-number-with-javascript.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
