var arr = [];
arr.push('A', 'B', 'C');

console.log(arr); 
console.log(arr.shift()); 
console.log(arr); 
console.log(arr.shift());  
console.log(arr); 
console.log(arr.shift());
console.log(arr); 
console.log(arr.shift());  

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

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