Skip to content

Commit

Permalink
Update files/zh-cn/learn/getting_started_with_the_web/javascript_basi…
Browse files Browse the repository at this point in the history
…cs/index.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
familyboat and github-actions[bot] authored Oct 8, 2024
1 parent 5c76a5e commit d21935f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,7 @@ multiply(20, 20);
multiply(0.5, 3);
```

> [!NOTE]
> [`return`](/zh-CN/docs/Web/JavaScript/Reference/Statements/return) 语句告诉浏览器将 `result` 变量返回到函数外面。这一点很有必要,因为函数内定义的变量只能在函数内使用。这叫做变量的{{Glossary("Scope", "作用域")}}。(阅读更多有关[变量的作用域](/zh-CN/docs/Web/JavaScript/Guide/Grammar_and_types#变量的作用域)的内容。)
> [!NOTE] > [`return`](/zh-CN/docs/Web/JavaScript/Reference/Statements/return) 语句告诉浏览器将 `result` 变量返回到函数外面。这一点很有必要,因为函数内定义的变量只能在函数内使用。这叫做变量的{{Glossary("Scope", "作用域")}}。(阅读更多有关[变量的作用域](/zh-CN/docs/Web/JavaScript/Guide/Grammar_and_types#变量的作用域)的内容。)
### 事件

Expand Down

0 comments on commit d21935f

Please sign in to comment.