SOURCE

let a = ['apple','banana','orange','four']
console.log('=======',a,'0-----')
a.splice(a.length - 1);
console.log('7777777777',a,'888888888')
console 命令行工具 X clear

                    
>
console