Corrected wording in es6 challenge (#19946)

* Update compare-scopes-of-the-var-and-let-keywords.english.md

* Updated line

Co-Authored-By: thecodingaviator <34807532+thecodingaviator@users.noreply.github.com>

* Format the document
pull/21122/head^2
The Coding Aviator 2018-11-05 23:28:36 +05:30 committed by Paul Gamble
parent b149191f80
commit f4ff1d961d
1 changed files with 2 additions and 2 deletions

View File

@ -30,8 +30,8 @@ This exercise is designed to illustrate the difference between how <code>var</co
```yml
tests:
- text: <code>var</code> does not exist in code.
testString: getUserInput => assert(!getUserInput('index').match(/var/g),'<code>var</code> does not exist in code.');
- text: <code>var</code> should not exist in code.
testString: getUserInput => assert(!getUserInput('index').match(/var/g),'<code>var</code> should not exist in code.');
- text: The variable <code>i</code> declared in the if statement should equal "block scope".
testString: getUserInput => assert(getUserInput('index').match(/(i\s*=\s*).*\s*.*\s*.*\1('|")block\s*scope\2/g), 'The variable <code>i</code> declared in the if statement should equal "block scope".');
- text: <code>checkScope()</code> should return "function scope"