pop method in arrays is used to remove the element from the end of the array.
//Name of the file : array-pop.js
arr = [ 5 , 5 , 8 , 7 , 6 ];
console.log(arr);
arr.pop();
console.log(arr);
>node array-pop.js
[ 5, 5, 8, 7, 6 ]
[ 5, 5, 8, 7 ]