.pop()

Description

The pop method takes in an array as input and returns the array with the last item removed

Parameters

Pop takes no parameters

Usage On Arrays

arr = ["wow","hello world"]
// setup the array

log arr.pop()
// ["wow"]
// returns the array with the last element removed

Last updated