Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 1.16 KB

README.md

File metadata and controls

27 lines (21 loc) · 1.16 KB

JavaScript Basics Unit Tests

Download

You can get a copy of this code repository in several ways:

  1. use git to clone it:
    git clone https://github.com/portsoc/js201.git
    or
  2. use the GitHub CLI tool:
    gh repo clone portsoc/js201
  3. download a zip of this repository
    • This has the disadvantage that if we publish improvements or bug fixes it will be harder for you to get hold of them (conversely using git you just have to type git pull at the command line to receive the updates).

If you're not familiar with the git & gh tools, or you have not yet installed them on your machine, we strongly suggest that you do install them and start the very worthwhile discovery process.

Running

From your new local copy of the code:

  • open index.html in your browser to see the listing of tests and their pass/fail status,
  • edit index.js to add code until all the tests pass,
  • try to improve the code to be cleaner, while checking that the tests continue to pass,
  • and you may also examine (but do not change) test.js to understand exactly what is being tested.