This is a simple test for a function which takes in an array of numbers and divides them into even and odd numbers. Also the test is a guidance on what edge cases you should look out for and implement in your code writing.
- Clone the repo
git clone https://github.com/fuchodeveloper/filter-array.git
. - Run
npm install
to install all the dependencies needed. - Run
npm test
to see what is failing and what you have to implement. - Write the code.
- Run
npm test
again and if test fails. - Refractor code.
- Run
npm test
again. - Enter
npm start
in the terminal to run app.