diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/compare-scopes-of-the-var-and-let-keywords.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/compare-scopes-of-the-var-and-let-keywords.md index 4250078f7e..4c52f3c6c8 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/compare-scopes-of-the-var-and-let-keywords.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/compare-scopes-of-the-var-and-let-keywords.md @@ -85,16 +85,13 @@ This exercise is designed to illustrate the difference between how `var` and `le `var` should not exist in code. ```js -(getUserInput) => assert(!getUserInput('index').match(/var/g)); +assert(!code.match(/var/g)); ``` The variable `i` declared in the `if` statement should equal the string `block scope`. ```js -(getUserInput) => - assert( - getUserInput('index').match(/(i\s*=\s*).*\s*.*\s*.*\1('|")block\s*scope\2/g) - ); +assert(code.match(/(i\s*=\s*).*\s*.*\s*.*\1('|")block\s*scope\2/g)); ``` `checkScope()` should return the string `function scope`