You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 18, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: week-1/readme.md
+22-10Lines changed: 22 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,20 +14,32 @@ To run tests in the `week-1` directory you can:
14
14
1. Change directory into `week-1`
15
15
2. Run the tests using `npm test`
16
16
17
-
## Exercises
17
+
## Fix
18
18
19
-
In this section, you'll have a short program and task. Some of the syntax may be unfamiliar - in this case, you'll need to look things up in documentation.
19
+
In this section, you'll have a function and some tests. The function isn't working for all the tests - you'll need to:
20
20
21
-
## Errors
21
+
- run the tests
22
+
- interpret the test feedback
23
+
- fix the tests
22
24
23
-
In this section, you'll need to go to each file in `errors` directory and run the file with node to check what the error is. Your task is to interpret the error message and explain why it occurs. The [errors documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors) will help you figure out the solution.
25
+
To run the tests for the `fix` directory you can `cd` into `week-1`and run `npm test -- fix`.
24
26
25
-
## Interpret
27
+
## 🔨 Implement
26
28
27
-
In these tasks, you have to interpret a slightly larger program with some syntax / operators / functions that may be unfamiliar.
28
-
You must use documentation to make sense of anything unfamiliar - learning how to look things up this way is a fundamental part of being a developer!
29
-
You can also use `console.log` to check the value of different variables in the code.
29
+
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.
30
30
31
-
## Explore - Stretch 💪
31
+
Here is a recommended order:
32
32
33
-
This stretch activity will get you to start exploring new concepts and environments by yourself. It will do so by prompting you to reflect on some questions.
33
+
1.`max.test.js`
34
+
2.`sum.test.js`
35
+
3.`dedupe.test.js`
36
+
37
+
## 🧹 Refactor
38
+
39
+
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!
40
+
41
+
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.
42
+
43
+
## Stretch 💪
44
+
45
+
Try the more challenging problem from Advent of Code!
0 commit comments