js pop().pop() code example
Example 1: js array pop
var array = ['A', 'B', 'C'];
// removes and returns last element
lastElement = array.pop();
Example 2: js array.pop
let cats = ['Bob', 'Willy', 'Mini'];
cats.pop(); // ['Bob', 'Willy']
var array = ['A', 'B', 'C'];
// removes and returns last element
lastElement = array.pop();
let cats = ['Bob', 'Willy', 'Mini'];
cats.pop(); // ['Bob', 'Willy']