This README will guide you through the different sections for this week.
Make sure your terminal is in the Sprint-1 directory of this repository.
Run the command npm install to install any dependencies you need.
This may be the first time you've seen the functions being defined in one file, and the tests in another.
This is common when writing JavaScript. You'll learn more about exports and require later in the course. For now, things have been set up to work - you shouldn't need to worry about how.
In this section, you'll have a function and some tests. The function isn't working for all the tests - you'll need to:
- Run the tests - to run the tests for the
fixdirectory you cancdintoSprint-1and runnpm test -- fix. - Interpret the test feedback
- Fix the tests
In this section, you will have a short set of requirements about a function. You will need to implement a function based off this set of requirements. Make sure you check your function works for a number of different inputs.
Here is a recommended order:
max.test.jssum.test.jsdedupe.test.js
Again, you can run just the test for the implement directory if you're in the Sprint-1 directory by running npm test -- implement.
In these problems, you'll be given an implementation and then asked to change it. Once you've updated the implementations you'll need to double check that they are still working!
Once you've completed all these tasks, raise a PR with your work so far. Don't wait to complete your coursework before completing the PR.
Advent of Code is an annual challenge of interesting exercises to try. Lots of programmers do these every year for fun.
We've included an exercise in the stretch directory - give it a go!