From df248bef145568e3814075f537e215192cb90044 Mon Sep 17 00:00:00 2001 From: 多年以后 <13697136064@139.com> Date: Mon, 28 Jun 2021 10:56:41 +0800 Subject: Update zh-cn docs by mdn/content #6330 [zh-cn] Update learn/javascript/Building_blocks/functions --- files/zh-cn/learn/javascript/building_blocks/functions/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'files/zh-cn') 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>
// first.js -var name = 'Chris'; +let name = 'Chris'; function greeting() { alert('Hello ' + name + ': welcome to our company.'); }
// second.js -var name = 'Zaptec'; +let name = 'Zaptec'; function greeting() { alert('Our company is called ' + name + '.'); }-- cgit v1.2.3-54-g00ecf