aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn
diff options
context:
space:
mode:
author多年以后 <13697136064@139.com>2021-06-28 10:56:41 +0800
committerIrvin <irvinfly@gmail.com>2021-06-28 16:55:17 +0800
commitdf248bef145568e3814075f537e215192cb90044 (patch)
treee2e5466db1e9ecb73d6e2a7e42e3e3fd8211b96e /files/zh-cn
parentb2482232490a4da1a8c04f7d1d34d34eea8b1519 (diff)
downloadtranslated-content-df248bef145568e3814075f537e215192cb90044.tar.gz
translated-content-df248bef145568e3814075f537e215192cb90044.tar.bz2
translated-content-df248bef145568e3814075f537e215192cb90044.zip
Update zh-cn docs by mdn/content #6330
[zh-cn] Update learn/javascript/Building_blocks/functions
Diffstat (limited to 'files/zh-cn')
-rw-r--r--files/zh-cn/learn/javascript/building_blocks/functions/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/files/zh-cn/learn/javascript/building_blocks/functions/index.html b/files/zh-cn/learn/javascript/building_blocks/functions/index.html
index a4cdc2c0c2..3b3e0b718f 100644
--- a/files/zh-cn/learn/javascript/building_blocks/functions/index.html
+++ b/files/zh-cn/learn/javascript/building_blocks/functions/index.html
@@ -245,13 +245,13 @@ var madeAString = myArray.join();
&lt;/script&gt;</pre>
<pre class="brush: js notranslate">// first.js
-var name = 'Chris';
+let name = 'Chris';
function greeting() {
alert('Hello ' + name + ': welcome to our company.');
}</pre>
<pre class="brush: js notranslate">// second.js
-var name = 'Zaptec';
+let name = 'Zaptec';
function greeting() {
alert('Our company is called ' + name + '.');
}</pre>