// Manipulate Arrays with pop()
var ourArray = [1, 2, 3];
var removedFromOurArray = ourArray.pop();
console.log(removedFromOurArray)
// Setup
var myArray = [["John", 23], ["cat", 2]];
shifttArray = ourArray.shift();
console.log('shift', shifttArray);
console.log('shift:', ourArray);
// way to edit array
// array.shift(); delete first object of array, array.pop(); delete last elemete array
//
To embed this project on your website, copy the following code and paste it into your website's HTML: