Reaction Tester

Reaction Tester
Template: Look at the example. Click this link, fork, and invite mrcodeswildride: new project


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 method to get the current time. Complete this illustration to understand how works.
Formula for calculating reaction time: (reaction time) = (end time) - (start time)
Last section Next section