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
This is sort of a grab-bag of things that I found while reading the README.
Each change is fairly small so it seemed best to combine them under one commit.
* Add link to The Odin Project home page in 1st paragraph.
* Remove a few contractions. (Contractions are not used consitently here,
so it was easier/better to just remove the few that popped up.)
* Fix some awkward phrasing.
Copy file name to clipboardExpand all lines: README.md
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# JavaScript Exercises
2
2
3
-
These JavaScript exercises are intended to complement the JavaScript content on The Odin Project (TOP). They should only be done when instructed during the course of the curriculum.
3
+
These JavaScript exercises are intended to complement the JavaScript content on [The Odin Project](https://www.theodinproject.com/) (TOP). They should only be done when instructed during the course of the curriculum.
4
4
5
5
## Contributing
6
6
@@ -20,12 +20,12 @@ If you have a suggestion to improve an exercise, an idea for a new exercise, or
20
20
- A markdown file with a description of the task, an empty (or mostly empty) JavaScript file, and a set of tests.
21
21
- A `solutions` directory that contains a solution and the same test file with all of the tests unskipped.
22
22
23
-
To complete an exercise, you'll need to go to the exercise directory with `cd exerciseName` in the terminal and run `npm test exerciseName.spec.js`. This should run the test file and show you the output. When you first run a test, it will fail. This is by design! You must open the exercise file and write the code needed to get the test to pass.
23
+
To complete an exercise, you will need to go to the exercise directory with `cd exerciseName` in the terminal and run `npm test exerciseName.spec.js`. This should run the test file and show you the output. When you run a test for the first time, it will fail. This is by design! You must open the exercise file and write the code needed to get the test to pass.
24
24
25
-
1. Some of the exercises have test conditions defined in their spec file as `test.skip`compared to`test`. This is purposeful. After you pass one `test`, you will change the next `test.skip` to `test` and test your code again. You'll do this until all conditions are satisfied. **All tests must pass at the same time**, and you should not have any `test.skip`instances by the time you finish an exercise.
25
+
1. Some of the exercises have test conditions defined in their spec file as `test.skip`instead of`test`. This is intentional. Once all `test`s pass, you will change the next `test.skip` to `test` and test your code again. You will do this until all conditions are satisfied. **All tests must pass at the same time**, and you should not have any instances of `test.skip`in the spec file when you are finished with an exercise.
26
26
1. Once you successfully finish an exercise, check the `solutions` directory within each exercise to compare it with yours.
27
27
- You should not be checking the solution for an exercise until you finish it!
28
-
- If your solution differs wildly from TOP's solution (and still passes the exercise's requirements), that's completely fine. Do feel free to ask about it in our Discord if there are parts you do not understand.
28
+
- If your solution differs wildly from TOP's solution (and still passes the exercise's requirements), that is completely fine. Feel free to ask about it in our Discord if there are parts you do not understand.
29
29
1. Do not submit your solutions to this repo, as any PRs that do so will be closed without merging.
30
30
31
31
**Note**: Due to the way Jest handles failed tests, it may return an exit code of 1 if any tests fail. NPM will interpret this as an error and you may see some `npm ERR!` messages after Jest runs. You can ignore these, or run your test with `npm test exerciseName.spec.js --silent` to supress the errors.
@@ -40,8 +40,8 @@ To debug functions, you can run the tests in the Visual Studio Code debugger ter
40
40
41
41
To add a new exercise:
42
42
43
-
1. Be sure you've ran`npm install` at the root of the `javascript-exercises` directory
44
-
2. Run the command `npm run generate`
45
-
3. When prompted, enter the name of the new exercise in camelCase syntax
43
+
1. Be sure to run`npm install` at the root of the `javascript-exercises` directory.
44
+
2. Run the command `npm run generate`.
45
+
3. When prompted, enter the name of the new exercise in "camelCase" syntax.
46
46
47
47
After entering an exercise name, a new directory with the necessary files will be created. You will then need to update the `README.md` and `spec.js` files as well as the files in the `solution` directory of the new exercise.
0 commit comments