Timer Issue in a block | XM Community
Skip to main content

I have timed a block for 20 minutes for a quiz section. But if a student finishes the test before the 20 minutes of time. The timer stills runs in the background. Is there a way I could stop the timer if the student moves out of the block? I look forward to any help.

Assuming your timer is using setInterval(), use clearInterval().


Leave a Reply