[BUG] Able to pass challenge "Basic JavaScript: Initializing Variables with the Assignment Operator" with incorrect answers #40406 (#40409)

* [BUG] #40406 Fix

* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/initializing-variables-with-the-assignment-operator.md

Requested Change.

Co-authored-by: Shaun Hamilton <51722130+Sky020@users.noreply.github.com>

Co-authored-by: Shaun Hamilton <51722130+Sky020@users.noreply.github.com>
This commit is contained in:
vbinithyanandamv
2020-12-16 06:37:36 +05:30
committed by GitHub
parent 22fbc62f88
commit 7c19c82076

View File

@ -23,7 +23,7 @@ Define a variable `a` with `var` and initialize it to a value of `9`.
You should initialize `a` to a value of `9`.
```js
assert(/var\s+a\s*=\s*9\s*/.test(code));
assert(/var\s+a\s*=\s*9(\s*;?\s*)$/.test(code));
```
# --seed--