Javascript challenges forked from Edabit.
Now you can do the challenges locally, using whichever IDE you prefer.
You will need to install NodeJS from https://nodejs.org and ensure that
you can run the npm command by running
npm versionand verifying that you see the NPM version, and not an error.
To try a challenge:
- 
Change in to to the directory containing the challenge.
 - 
Run
npm installto install the necessary dependencies. - 
Read
README.mdfor a description of the problem. - 
Read the tests in
code.spec.jsto get a better understanding of exactly what parameters the code you will write should take, and the values your code should return. - 
Run the tests wth
npm test. They should fail. - 
Edit the function in
code.js. When you think you have written the code correctly re-run the tests (npm test) to check. If they pass, great. If not, try and understand the failure, and edit your code to fix the problem. Then re-run the tests. 
If you get stuck on a challenge, move on and try and different one for a bit. This gives your mind the chance to subconsciously think about the problem, and you can come back later and try and solve it again.