From c5324b9779f8da1ced869ef604a53b79ca69c8b7 Mon Sep 17 00:00:00 2001 From: wuhao5436 <772930613@qq.com> Date: Thu, 23 Sep 2021 19:11:44 +0800 Subject: Fix mistranslation in Web/JavaScript/Reference/Statements/function, zh-CN (#2545) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit “生成” means generate or create "生产" means production --- files/zh-cn/web/javascript/reference/statements/function/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'files') 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
函数可以被有条件来声明,这意味着,函数声明可能出现在一个 if 语句里,但是,这种声明方式在不同的浏览器里可能有不同的效果。因此,不应该在生成环境代码中使用这种声明方式,应该使用函数表达式来代替。
+函数可以被有条件来声明,这意味着,函数声明可能出现在一个 if 语句里,但是,这种声明方式在不同的浏览器里可能有不同的效果。因此,不应该在生产环境代码中使用这种声明方式,应该使用函数表达式来代替。
var hoisted = "foo" in this;
console.log(`'foo' name ${hoisted ? "is" : "is not"} hoisted. typeof foo is ${typeof foo}`);
--
cgit v1.2.3-54-g00ecf