https://github.com/joshuacc/js-practice-problems
https://github.com/joshuacc/js-practice-problems
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/joshuacc/js-practice-problems
- Owner: joshuacc
- Created: 2022-10-29T20:28:14.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-29T20:56:30.000Z (over 2 years ago)
- Last Synced: 2025-01-25T07:08:33.188Z (4 months ago)
- Language: JavaScript
- Size: 59.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JS Practice Problems
## Getting started
1. Clone this repository to your computer (if you're not familiar with how, I recommend Github Desktop)
2. Open this folder in VS Code
3. Open the terminal in VS Code
4. Type `npm ci` and execute it
5. Type `npm test` and execute it. You should see a message saying that there are several ignored tests.Now everything is set up. In the problems/functions-1 folder, you'll find a JavaScript test file. That test file consists of a series of tests describing various functions that haven't been written yet.
To do the exercise change the relevant `xdescribe` to just `describe`, then run `npm test` to see the results.
You should see at least one test failure. That is intended.
Now it is your job to write the corresponding function to make the tests pass. Once you believe that your function is correct or close to it, run `npm test` again to see if it passes the tests.
The `npm test` command should give you output showing whether your function worked or not, and if it didn't, it should describe a bit about what was wrong with it.
Keep doing that until you've completed all the exercises.