How to use pop()?
const words = ['Hello', 'Mischa', 42]
// output: ['Hello', 'Mischa', 42]
console.log(words)
// returns 42
words.pop()
// output: ['Hello', 'Mischa']
console.log(words)
December 4th, 2019
pop()
removes the last item from the original array and returns it.