const alphabet1 = ['A', 'B', 'C'];

console.log('Before');
console.log(alphabet1);

const unshift1 = alphabet1.unshift('A', 'B', 'C')

console.log(`\nreturns element: ${unshift1}`);
console.log('\nAfter');
console.log(alphabet1);

console.log(`\n----------------------------------------------\n`);

console.log('Before');
alphabet2 = ['A', 'B', 'C'] 
console.log(alphabet2);

const unshift2a = alphabet2.unshift('A')
const unshift2b = alphabet2.unshift('B')
const unshift2c = alphabet2.unshift('C')

console.log(`\nreturns element: ${unshift2c}`);
console.log('\nAfter');
console.log(alphabet2);

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://codepen.io/nullobject/pen/cngzI.js