.pop()

# .pop()

Description

Pop is a method that removes and returns the last value from an array

Parameters

Pop takes no parameters.

Usage On Arrays

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

log arr.pop()
// returns "world"
// the last value was removed

Last updated

Was this helpful?