Link Search Menu Expand Document

Manipulate Arrays With pop()

Summary

  • The pop() function removes the last value from an array.

Final Code

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

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