These challenges encourage you to keep on practicing your JavaScript skills!
-
Run
npm run eslintin your terminal. Make sure you fix any linting errors from the previous challenges. -
If you made any changes in the previous 2 steps, make sure to commit them.
-
Take a look at the
test/exercise002.test.jsfile where you will see the tests for this set of challenges. -
Complete the functions in
challenges/exercise002.jsin order to make the tests pass. 👉 Remember that you can pause tests or run only specific tests - see the main README.md file for details. -
If you want to only run a specific test file (which you probably do want to do, since using .only only works within a single file) then go to the
package.jsonfile and update thetestscript section so that it looks like this:
"scripts": {
"test": "jest test/exercise002.test.js",
"eslint": "eslint ./"
},Remember to change it back afterwards so it's running all the tests again!
Ready for the next ones? Here you go: Exercises 003 - Docs 💃🕺