pop element in javascript code example Example: js array.pop let cats = ['Bob', 'Willy', 'Mini']; cats.pop(); // ['Bob', 'Willy']