aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn')
-rw-r--r--files/zh-cn/web/javascript/reference/statements/return/index.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/files/zh-cn/web/javascript/reference/statements/return/index.html b/files/zh-cn/web/javascript/reference/statements/return/index.html
index 9debeab7af..8c82917d96 100644
--- a/files/zh-cn/web/javascript/reference/statements/return/index.html
+++ b/files/zh-cn/web/javascript/reference/statements/return/index.html
@@ -69,11 +69,11 @@ a + b;</pre>
<pre class="brush: js">function counter() {
for (var count = 1; ; count++) { // 无限循环
console.log(count + "A"); // 执行5次
- if (count === 5) {
- return;
- }
- console.log(count + "B"); // 执行4次
+ if (count === 5) {
+ return;
}
+ console.log(count + "B"); // 执行4次
+ }
console.log(count + "C"); // 永远不会执行
}