Skip to content

vsb-js/template-lab-02

Repository files navigation

labs-02

Description

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

Dependencies

  1. nodejs >= 14
  2. npm
  3. git

First steps

  1. Clone project to your computer git clone
  2. Install all required packages by running: npm install.
  3. You are ready to develop!

Tests

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

Notes

  • 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.