var ourArray = [50,40,30];Note
ourArray[0] = 15; // equals [15,40,30]
array [0]. Although JavaScript is able to process this correctly, this may confuse other programmers reading your code.
0 of myArray to a value of 45.
myArray should now be [45,64,99].
testString: assert((function(){if(typeof myArray != 'undefined' && myArray[0] == 45 && myArray[1] == 64 && myArray[2] == 99){return true;}else{return false;}})(), 'myArray should now be [45,64,99].');
- text: You should be using correct index to modify the value in myArray.
testString: assert((function(){if(code.match(/myArray\[0\]\s*=\s*/g)){return true;}else{return false;}})(), 'You should be using correct index to modify the value in myArray.');
```