Which method is used to remove the last element from an array in JavaScript?
pop()
shift()
slice()
splice()