how to pop off the front of array javascript code example
Example: js array pop
var array = ['A', 'B', 'C'];
// removes and returns last element
lastElement = array.pop();
var array = ['A', 'B', 'C'];
// removes and returns last element
lastElement = array.pop();