Open this example in the interactive library
Source code
const stack = ["a", "b"];
stack.push("c");
console.log(stack.pop(), stack);
Sample output
c [ 'a', 'b' ]

Open this example in the interactive library
const stack = ["a", "b"];
stack.push("c");
console.log(stack.pop(), stack);
c [ 'a', 'b' ]