diff options
-rw-r--r-- | files/zh-cn/learn/javascript/building_blocks/functions/index.html | 4 |
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(); </script></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> |