JavaScript Checkpoint
Fork and clone this repository and complete the three sections below. Make at least one commit for each section. When finished, push your commits to your forked repository and submit a Pull Request back to the original repository.
IMPORTANT: Make sure to use the var
keyword for ALL variable declarations (for testing purposes). DO NOT use const
or let
.
Fundamentals
Follow the prompts and write your code in fundamentals.js
Higher-Order Functions
Follow the prompts and write your code in hof.js
OOJS
Follow the prompts and write your code in oojs.js
Pro Tip: Test Your Code
You should first test your code's functionality in the browser console via the included index.html
file.
Once you think your code is correct, you can run the tests that will evaluate your solutions to double-check them.
To do so, first install the testing packages...
$ npm install
Then call the test runner each time you want to check your code...
$ npm test