let arr1 = [1, 2, 3];
const newLength = arr1.push(4, 5, 6, 7, 8);
console.log(arr1)
console.log(newLength)
let arr2 = [1, 2, 3];
const popppedItem = arr2.pop();
console.log(popppedItem);
console.log(arr2);
let arr3 = [1, 2, 3];
const shiftedItem = arr3.shift();
console.log(shiftedItem, arr3)
let arr4 = [1, 2, 3];
const newLength2 = arr4.unshift(0);
console.log(arr4);
console.log(newLength2)
let arr5 = [1, 2, 3, 4, 5];
const sliced = arr5.slice(2, 5);
const sliced2 = arr5.slice(2);
const sliced3 = arr5.slice(-1);
console.log(sliced);
let arr6 = [1, 2];
let arr7 = [3, 4];
let concatedArr = arr6.concat(arr7);
console.log(concatedArr);