Clear Timeout Lab
In this lab, you will create an HTML page with two buttons and a paragraph. The first button, with id
startBtn, should start a timer that will change the content of the paragraph with id
timerDisplay every second. The second button, with id
stopBtn, should clearTimeout the currently running timer so that the content of the paragraph stops changing.
This lab will help you understand and apply the
- DOM manipulation
- Event handling