For this exercise you must get the tests to pass.
- Write a constructor function for a
Stack
Implement the following methods on the Stack.prototype
This function adds the value to the beginning of the stack. This should be an O(1) operation and return the size of the stack.
This function removes the value at the beginning of the stack. This should be an O(1) operation and return the value removed.
This function returns the first value in the stack.
This function console.log's all the values in the stack.
- Given a doubly linked list, implement a stack