array [0][0]
and even this array [0] [0]
is not allowed. Although JavaScript is able to process this correctly, this may confuse other programmers reading your code.
myArray
such that myData
is equal to 8
.
myData
should be equal to 8
.
testString: assert(myData === 8, 'myData
should be equal to 8
.');
- text: You should be using bracket notation to read the correct value from myArray
.
testString: assert(/myData=myArray\[2\]\[1\]/.test(code.replace(/\s/g, '')));
```