TO DO: Description or intro...
const arr = [1, 2, 3];
arr.unshift(0);
console.log(arr);
Result: [ 0, 1, 2, 3 ]
const arr = [1, 2, 3];
arr.push(0);
console.log(arr);
Result: [ 1, 2, 3, 0 ]
const arr = [1, 2, 3];
// we can store that element in a variable
// const first = arr.shift();
arr.shift();
console.log(arr);
Result: [ 2, 3 ]
const arr = [1, 2, 3];
// we can store that element in a variable
// const last = arr.pop();
arr.pop();
console.log(arr);
Result: [ 1, 2 ]