js array i pop one it pop all 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();