- Fork the repo
- Clone it down
- Run
npm install
to install dependencies (jest) - Run
npm run test
to run the tests
- Look in
main.js
. Each function has been started for you, but has no code or parameters. Your job is to finish them according to the tests inmain.test.js
- Read the test cases carefully
- Do not edit the test file. All your work can and should be done within
main.js
- When writing code for some of the later functions, you are allowed (and encouraged) to use any of your previously defined functions