git clone https://github.com/killface-org/js-challenges.git
cd js-challenges
npm install
Each challenge is located in the challenges
directory, with filenames corresponding to the challenge number.
For example the first challenge is named c1.js
. Instructions for completing the challenge are in the comment at the
begging of the file.
Once you have completed you solution, you can run it against the test scenarios using npm in the terminal.
This command will check your solution for the first challenge.
npm run check 1
Whereas this will check you solution for the second challenge.
npm run check 2