Sample coding challenges. You can write and test it right away.
A repository for testing and storing programming tasks. Due to the added tests, it is possible to control your own capabilities.
It's not perfect, so if you see a bug in the solution or within tests, it will be great if you share your thoughts on the subject, for example, as an issue or creating a PR.
First, you have to clone the project
git clone https://github.com/403-html/javascript-coding-challenges.git
then install all dependencies
for npm
npm install
or yarn
yarn install
Then search for an interesting challenge, for example, prime-number
.
Read the README.md
in that folder. Write your solution in a javascript file dedicated to this folder (in our case, isPrime.js
). There is a special place dedicated to doing that.
If you're sure it's all good, go to the __tests__
folder and open the test file. Remove the .skip
method in tests and save.
Run tests by npm
npm run prime-number
or if you're using yarn
yarn run prime-number
If you take another task to do, just use the name of the task folder instead of prime-number
.
Enjoy!
Author: Tymoteusz '403-html' Stępień