Exercism exercises in JavaScript
Node.js must be installed. Follow these instructions for installing nodejs. We recommend using the latest LTS version.
Use npm
to install all required dependencies:
npm install
This project uses eslint to help you write quality JavaScript code by checking for common formatting errors, enforcing style rules, and suggesting changes that conform to best practices.
npm run lint-test
The make script will test all exercises:
make test
Note: make test
is recommended BEFORE submitting a PR. It will test your submission, and help guard against unintentional, unrelated changes.
Pass the exercise name to make script to run the tests for a specific exercise:
make test-assignment ASSIGNMENT=hello-world
For an in-depth discussion of how exercism language tracks and exercises work, please see CONTRIBUTING.md