portsoc / js201

Basic JS problems, delivered as QUnit tests

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Basic JS problems, delivered as QUnit tests


Languages

Language:JavaScript 96.1%Language:CSS 3.8%Language:HTML 0.2%