Reaction Tester

Reaction Tester
Template: Look at the example. Click this link, fork, and add your username to the project name: new project

Hints

If you're having trouble, look at the Boolean and timing events exercises.
For calculating the reaction time, do NOT set an interval. Instead, record when the page changes color, and record when the user clicks the button. Then do some math to calculate the reaction time. Use the Date.now method to get the current time. Complete this illustration to understand how Date.now works.
Formula for calculating reaction time: (reaction time) = (end time) - (start time)
Last section Next section