mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-10-24 23:49:06 +08:00
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:
co-authored by
Catherine Baird
parent
b74c9a48a0
commit
7d90b9a179
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user