/stack

Primary LanguageJavaScript

TDD Warm Up Exercise

Implement a Stack class with the following public methods:

  • void push(Object object)
  • Object pop()
  • Stack should throw an exception if popped when empty.

Use Yarn to install dependencies and run tests:

yarn install
yarn test