diff options
author | deepthan <deepthan@163.com> | 2021-08-18 22:49:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-18 22:49:15 +0800 |
commit | d00fb1d099abb38f9c19f1f6e8c7f48e46ac52b9 (patch) | |
tree | bd209280f4b6de82733031631148c78a4292af6e /files | |
parent | ab5952a92f0aa497a1efd519d4d78742b5cbb65c (diff) | |
download | translated-content-d00fb1d099abb38f9c19f1f6e8c7f48e46ac52b9.tar.gz translated-content-d00fb1d099abb38f9c19f1f6e8c7f48e46ac52b9.tar.bz2 translated-content-d00fb1d099abb38f9c19f1f6e8c7f48e46ac52b9.zip |
Improve code indentation in Web/JavaScript/Reference/Statements/return, zh-CN (#2119)
This PR fix alignment of return example .
Diffstat (limited to 'files')
-rw-r--r-- | files/zh-cn/web/javascript/reference/statements/return/index.html | 8 |
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"); // 永远不会执行 } |