<script> var arr=[1,2,3,4,5,6]; var newArr=arr.push(3,2,1); console.log(newArr); Array.prototype.newPush=function (){ var lenThis=this.length; var legArgu=arguments.length; lenThis===0?returnarguments:; lenArgu===0?returnthis:; for(let i=0;i<lenArgu;i++){ this[lenThis+i]=arguments[i]; } } </script>