aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference
diff options
context:
space:
mode:
authorwuhao5436 <772930613@qq.com>2021-09-23 19:11:44 +0800
committerGitHub <noreply@github.com>2021-09-23 19:11:44 +0800
commitc5324b9779f8da1ced869ef604a53b79ca69c8b7 (patch)
tree417c6b87d06eb38f18e5fb7f5f649c3069e0ec6e /files/zh-cn/web/javascript/reference
parent0405f15b8bcfc2141c638a089e17f2cb49a2905d (diff)
downloadtranslated-content-c5324b9779f8da1ced869ef604a53b79ca69c8b7.tar.gz
translated-content-c5324b9779f8da1ced869ef604a53b79ca69c8b7.tar.bz2
translated-content-c5324b9779f8da1ced869ef604a53b79ca69c8b7.zip
Fix mistranslation in Web/JavaScript/Reference/Statements/function, zh-CN (#2545)
“生成” means generate or create "生产" means production
Diffstat (limited to 'files/zh-cn/web/javascript/reference')
-rw-r--r--files/zh-cn/web/javascript/reference/statements/function/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/zh-cn/web/javascript/reference/statements/function/index.html b/files/zh-cn/web/javascript/reference/statements/function/index.html
index b53c1891b8..98d1073a9d 100644
--- a/files/zh-cn/web/javascript/reference/statements/function/index.html
+++ b/files/zh-cn/web/javascript/reference/statements/function/index.html
@@ -53,7 +53,7 @@ translation_of: Web/JavaScript/Reference/Statements/function
<h3 id="有条件的创建函数" style="line-height: 24px; font-size: 1.71428571428571rem;">有条件的创建函数</h3>
-<p>函数可以被有条件来声明,这意味着,函数声明可能出现在一个 if 语句里,但是,这种声明方式在不同的浏览器里可能有不同的效果。因此,不应该在生成环境代码中使用这种声明方式,应该使用函数表达式来代替。</p>
+<p>函数可以被有条件来声明,这意味着,函数声明可能出现在一个 if 语句里,但是,这种声明方式在不同的浏览器里可能有不同的效果。因此,不应该在生产环境代码中使用这种声明方式,应该使用函数表达式来代替。</p>
<pre class="brush: js notranslate"><code>var hoisted = "foo" in this;
console.log(`'foo' name ${hoisted ? "is" : "is not"} hoisted. typeof foo is ${typeof foo}`);