made semi-colon on basic-javascript challenge optional. (#36465)

* made closing operator optional.

* truncated unnecessary regex
This commit is contained in:
Ashrith Reddy
2019-07-18 20:37:17 +05:30
committed by Randell Dawson
parent 8757deb56c
commit 8e9014214a

View File

@ -26,7 +26,7 @@ tests:
- text: <code>processed</code> should have a value of <code>2</code>
testString: assert(processed === 2);
- text: You should assign <code>processArg</code> to <code>processed</code>
testString: assert(/processed\s*=\s*processArg\(\s*7\s*\)\s*;/.test(code));
testString: assert(/processed\s*=\s*processArg\(\s*7\s*\)/.test(code));
```