Implement function bodies. You can find them in array.js
, cycles.js
, objects.js
and strings.js
files. Some functions are BONUS.
We expect you to run the files using npm start
command.
Please uncomment function calls in index.js
as you will implement them.
Printing output into console by console.log
may help you :-).
Please look what functions should do - either console.log or return
- Clone project to your computer
git clone
- Install all required packages by running:
npm install
. - You are ready to develop!
Don't forget to run prepared tests by executing npm test
when you finish. You can run specific test like this:
npm run test:strings
npm run test:array
npm run test:cycles
npm run test:objects
// bonus
npm run test:bonus
- Don't forget to comment your more complex code. It is better to read why you implemented solution like you did.
- You can call prettier to automatically format your code by running
npm run fix
.