JavaScript pop is use to remove the last element from the array. See the code snippet:
JavaScript pop