Fixed bug in 2nd test for Access Multi-Dimensional Arrays With Indexe… (#35666)

* Fixed bug in 2nd test for Access Multi-Dimensional Arrays With Indexes Challenge

* Fix for issue #35665

Fixed Bug In 2nd test case for Access Multi Dimensional Arrays With Indexes

* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/access-multi-dimensional-arrays-with-indexes.english.md

Co-Authored-By: Artistic18 <hrishitbiswas20@gmail.com>

* fix: added missing ) for assert statement
pull/34636/head
Hrishit Prasad Biswas 2019-03-26 02:12:21 +05:30 committed by Tom
parent d331ad1fcd
commit 4eb4afe53b
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ tests:
- text: <code>myData</code> should be equal to <code>8</code>.
testString: assert(myData === 8, '<code>myData</code> should be equal to <code>8</code>.');
- text: You should be using bracket notation to read the correct value from <code>myArray</code>.
testString: assert(/myArray\[2\]\[1\]/g.test(code) && !/myData\s*=\s*(?:.*[-+*/%]|\d)/g.test(code), 'You should be using bracket notation to read the correct value from <code>myArray</code>.');
testString: assert(/myData=myArray\[2\]\[1\]/.test(code.replace(/\s/g, '')));
```