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 statementpull/34636/head
parent
d331ad1fcd
commit
4eb4afe53b
|
@ -26,7 +26,7 @@ tests:
|
||||||
- text: <code>myData</code> should be equal to <code>8</code>.
|
- 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>.');
|
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>.
|
- 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, '')));
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue