push()
function.
.push()
takes one or more parameters and "pushes" them onto the end of the array.
var arr = [1,2,3];
arr.push(4);
// arr is now [1,2,3,4]
["dog", 3]
onto the end of the myArray
variable.
myArray
should now equal [["John", 23], ["cat", 2], ["dog", 3]]
.'
testString: 'assert((function(d){if(d[2] != undefined && d[0][0] == ''John'' && d[0][1] === 23 && d[2][0] == ''dog'' && d[2][1] === 3 && d[2].length == 2){return true;}else{return false;}})(myArray), ''myArray
should now equal [["John", 23], ["cat", 2], ["dog", 3]]
.'');'
```