See http://exercism.io/languages/javascript/installing
npm install -g jasmine
For macOS use HomeBrew:
brew update && brew install exercism
For Windows use Chocolatey:
choco install exercism-io-cli
For Linux follow these instructions
Use the CLI to get the Hello World exercise:
exercism fetch javascript hello-world
Go to the directory for this exercise, for example:
cd ~/exercism/javascript/hello-world
Attempt to run the test (this will fail):
jasmine hello-world.spec.js
Make the changes needed (in hello-world.js
) to make each test pass and repeat.
Go here to get your API key, and then configure it with:
exercism configure --key=YOUR_EXERCISM_KEY
Once you have completed the tests, submit your solution:
exercism submit hello-world.js
Either, get the next exercise with:
exercism fetch javascript
Or alternatively pick exercise of your choice from here and fetch manually:
exercism fetch javascript [your-chosen-exercise]