From 7d90b9a1796dc758b61402740975e9f5d2992ea3 Mon Sep 17 00:00:00 2001 From: ctbaird <37962844+ctbaird@users.noreply.github.com> Date: Mon, 28 Nov 2022 08:46:50 -0500 Subject: [PATCH] fix(curriculum): replace instance of var with let (#48610) fix(curriculum): replace var with let in scope challege english only Co-authored-by: Catherine Baird --- .../basic-javascript/global-scope-and-functions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/global-scope-and-functions.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/global-scope-and-functions.md index 08da2536bb0..852657583d0 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/global-scope-and-functions.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/global-scope-and-functions.md @@ -95,7 +95,7 @@ function fun1() { // Only change code above this line function fun2() { - var output = ""; + let output = ""; if (typeof myGlobal != "undefined") { output += "myGlobal: " + myGlobal; } @@ -116,7 +116,7 @@ function fun1() { } function fun2() { - var output = ""; + let output = ""; if(typeof myGlobal != "undefined") { output += "myGlobal: " + myGlobal; }