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 <bairdc@cua.edu>
This commit is contained in:
ctbaird
2022-11-28 08:46:50 -05:00
committed by GitHub
parent b74c9a48a0
commit 7d90b9a179

View File

@@ -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;
}