mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-04 09:05:49 -05: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:
@@ -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