Manipulate Arrays With pop

Manipulate Arrays With pop
0.0 0

#1

THE CODE ANSWER
Manipulate Arrays With pop

// Example
var ourArray = [1,2,3];
var removedFromOurArray = ourArray.pop();
// removedFromOurArray now equals 3, and ourArray now equals [1,2]

// Setup
var myArray = [[“John”, 23], [“cat”, 2]];

// Only change code below this line.
var removedFromMyArray = myArray.pop();