Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 237 Bytes

pop.md

File metadata and controls

10 lines (6 loc) · 237 Bytes

Pop

The pop() method removes the last element from an array and returns that element. This method changes the length of the array.

var arr = ["one", "two", "three", "four", "five"]; 

arr.pop(); 

console.log(arr);