Write a test. Then prove it works.

Your test has to pass on the working app and fail on a copy where the behaviour is broken on purpose. If it passes both, it was not testing that behaviour.

Free-play · any app, nothing graded

Next up · Level 1

Prove the login really checks the password

Nimbus · Forms & validation · 2 behaviours to catch

Level 1Start hereCheck a sign-in result, a form error or a cart count.
Level 2Check the result, not the pageA search or a cart update changes what you see. Check what it changed to.
Levels 3 to 5The obvious test is not enoughIt passes on the broken copy too.

JavaScript and TypeScript exercises

Practice for the language lectures. Each exercise is free. It runs your code and compares the result with the expected one. These are separate from the problems above, where your test runs against a broken app.

JavaScript

Showing 6 of 28

TypeScript

Showing 6 of 21