These exercises will allow us - and also yourself - to evaluate your current knowledge about JavaScript programming.
Your code will be reviewed and you will receive a feedback from a mentor about what you've done well and where you can improve.
Please do complete the questions on your own and do not slack/chat with your colleagues.
You may not use Google or StackOverFlow to find solutions and always try to do it yourself first We suggest you to only use the Javascript documentation from MDN.
- Please UNCOMMENT each function, and its associated name in the module.exports object at the bottom of the file, as you reach them.
- Also, change the
module1.test.js
file from...
xit("Q? - Description", function() { ...
to
it("Q? - Description", function() { ...
- Make sure you use git to push your code to GitHub when you have successfully tested your solution to each question.
- When you have completed the questions, make a pull request back to the CYF repository.
- Read carefully all the code, all comments as well as the unit tests to understand what the code is supposed to do
- Fill in the parts marked with TODO
Bonus: if you're done before the end of the allotted time, you can try to modify your code to use the ES6 syntax.
Fork and clone this repository to your computer and install the packages with npm
or yarn
:
git clone https://github.com/codeyourfuture/module-tests.git
cd module-tests
npm install
You can run the following command to run the unit tests:
npm test
To run and watch:
npm test -- --watch
Don't forget to commit your code often. Once it's ready, create a pull request with your solution.
Commits done after the time is up won't be considered.