Another way to change the data in an array is with the
.pop() is used to “pop” a value off of the end of an array. We can retrieve this value by performing
pop() in a variable declaration.
Any type of variable can be “popped” off of an array.
Right answer is:
var myArray = [[“John”, 23], [“cat”, 2]];
var removedFromMyArray = myArray.pop()