From f4ff1d961deb2f07b82235ca216354b4dde80711 Mon Sep 17 00:00:00 2001
From: The Coding Aviator <34807532+thecodingaviator@users.noreply.github.com>
Date: Mon, 5 Nov 2018 23:28:36 +0530
Subject: [PATCH] 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
---
.../es6/compare-scopes-of-the-var-and-let-keywords.english.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/compare-scopes-of-the-var-and-let-keywords.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/compare-scopes-of-the-var-and-let-keywords.english.md
index e92ff3cad9..c2d268a49c 100644
--- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/compare-scopes-of-the-var-and-let-keywords.english.md
+++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/compare-scopes-of-the-var-and-let-keywords.english.md
@@ -30,8 +30,8 @@ This exercise is designed to illustrate the difference between how varvar
does not exist in code.
- testString: getUserInput => assert(!getUserInput('index').match(/var/g),'var
does not exist in code.');
+ - text: var
should not exist in code.
+ testString: getUserInput => assert(!getUserInput('index').match(/var/g),'var
should not exist in code.');
- text: The variable i
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 i
declared in the if statement should equal "block scope".');
- text: checkScope()
should return "function scope"