JS Exercises
Learning outcomesโ
- Practice the use of Git and GitHub.
- Practice the use of JavaScript to select, traverse, manipulate, and create DOM elements.
- Practice the use of JavaScript to code solutions to technical problems.
Goalsโ
This is a collection of JavaScript exercises and coding challenges. The focus in this assignment is to:
- Practice problem solving.
- Practice JavaScript fundamentals.
- Practice using the official documentation. (We'll be using many documentations for many libraries so it's good to start here)
Guidelinesโ
- This assignment utilized automated-tests to check for the correctness of your code. These tests can be a bit specific about what you name things, where do you place them, what
HTML
tag you use for them, ...etc.- Please Follow the instructions on this assignment for the best outcome.
- Make a habit of committing and pushing your code frequently to github.
- Make sure to meaningful commit messages that describe what you did.
- Make sure the automated tests and checks continue to pass after you make changes.
- To be able to run the automated grading checks, make sure you have installed Node.js, per the instructions posted on Canvas.
- Don't forget to fill out the self assessment on the README file, and the feedback form at the end of the instructions.
Instructionsโ
- Accept the Assignment on Canvas.
- This will create a repository for you with a few starting files.
.
โโโ .vscode
โ โโโ settings.json
โโโ src
โ โโโ __tests__
โ โ โโโ 1.numbers.js
โ โ โโโ 2.strings.js
โ โ โโโ 3.arrays.js
โ โ โโโ 4.objects.js
โ โ โโโ 5.logicalOperators.js
โ โ โโโ 6.flowControl.js
โ โ โโโ 7.equality.js
โ โโโ 1.numbers.js โฌ ๏ธ
โ โโโ 2.strings.js โฌ ๏ธ
โ โโโ 3.arrays.js โฌ ๏ธ
โ โโโ 4.objects.js โฌ ๏ธ
โ โโโ 5.logicalOperators.js โฌ ๏ธ
โ โโโ 6.flowControl.js โฌ ๏ธ
โ โโโ 7.equality.js โฌ ๏ธ
โโโ .eslintrc.json
โโโ .gitignore
โโโ package-lock.json
โโโ package.json
โโโ README.md ๐ผ: update this once done - you will only be working on the files marked with the arrows
- Clone down the repository to your local computer.
- Install the project dependencies using the
npm install
command.
- make sure you're in the project directory in the terminal before you run this command.
Run the project tests using
npm test
You should see all the tests failing like so:Our task would be to implement the functions in the
src
files (marked with โฌ ๏ธ arrow above) until all the tests pass.at the end of each test, commit your code
git commit -m "finished test xyz"
.DON'T FORGET to Update the README.md file with your self assessment
- Your grade
- Self Reflection
- How long it took you to complete the assignment
push your code.