The repo contains a couple of coding tasks ranging from easy to hard.
- nodejs 20+ (but any other JS runtime is fine as well)
- git
The use of other code quality tools is encouraged.
The directory tasks contains the tasks. Each task has its own directory with corresponding number.
It is expected that tasks will be done in order.
Each directory contains:
main.js- the solution is expected heremain.test.js- some basic tests to check the solutionREADME.md- the task description
Feel free to change any of given files.
Make sure to pass existing tests with npm test and provide clear reasoning for the solution.
Run test cases with:
node --testcommand
Optionally, you can specify wildcard to run only specific tests and files:
node --test --test-name-pattern="returns 6" tasks/01/main.test.js Note that all provided code was written for nodejs 20. If you wish to use other runtime, make sure to port code to it.