Stack:
Inserting element into last of your array, remove element top of your array(LIFO).
let stack = [];
//insert element
stack.push(1);
stack.push(2);
stack.push(3);
//output [1,2,3]
//remove element
stack.pop()
//output [1,2]
For further actions, you may consider blocking this person and/or reporting abuse
Gladiators Battle -
Philip -
adam -
Louis Bertson -
Top comments (0)