let a = ['apple','banana','orange','four'] console.log('=======',a,'0-----') a.splice(a.length - 1); console.log('7777777777',a,'888888888')