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: A1lo <[email protected]>
  • Loading branch information
familyboat and yin1999 authored Oct 10, 2024
1 parent b94faab commit 9192d00
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +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#变量的作用域)的内容。)
> **备注:** [`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 9192d00

Please sign in to comment.