Reaction Tester

Example link icon

Basic Features

Step 1: From the Cloud9 dashboard: Create a new workspace
Fill in the following text boxes on the form:
→ Workspace name: reaction-tester Copy
→ Clone from Git or Mercurial URL: https://github.com/studentmrcode/reaction-tester.git Copy
Click Create workspace button
Open index.html and click Run

Step 2: Think about the design of your program and write pseudocode.
Hint: Click here for a pseudocode example.

Step 3: Write actual code from your pseudocode.
Hint: If you're having trouble, look at your Stopwatch project.

Hints

For changing the page color after a certain amount of time, watch the timing events video. The video shows an example. Do NOT copy it exactly.

For changing the page color after a random amount of time, watch the random number video. The video shows an illustration. Figure out how it relates to your code.

For calculating the reaction time, get the current time, expressed as the number of milliseconds since midnight January 1, 1970:
Date.now()

Debugging help

Last topic Next topic