Which of the following is a possible implementation of a stack with an array in JavaScript?
A. Using unshift() and shift() methods
B. Using push() and pop() methods
C. Using splice() method
D. Using reduce() method
This question is part of this quiz :
JavaScript Stack