From d00fb1d099abb38f9c19f1f6e8c7f48e46ac52b9 Mon Sep 17 00:00:00 2001 From: deepthan Date: Wed, 18 Aug 2021 22:49:15 +0800 Subject: Improve code indentation in Web/JavaScript/Reference/Statements/return, zh-CN (#2119) This PR fix alignment of return example . --- files/zh-cn/web/javascript/reference/statements/return/index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/statements') 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;
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");  // 永远不会执行
 }
 
-- 
cgit v1.2.3-54-g00ecf