Lab 42: Countdown Timer

Link to Lab 42:

In this lab, we were assigned to create a timer with predetermined times that can be started using the buttons and an added feature where you can add the number of minutes. The time remaining would appear in big text on the webpage. This lab was created using multiple functions that would handle the display of the time left, display end time, to start the timer. For the different buttons there is a single line of code that handles it which is:  buttons.forEach(button => button.addEventListener('click', startTimer));. This lab could be useful when we want event triggered by a set time interval or even for games where the clock is ticking and the user has added pressure which adds to the intensity of the game, or it cpuld simply be used as a timer for people to use. Either, I believe this lab has some very useful skills I learned.


Comments

Popular posts from this blog

Lab 23-2: Type Ahead

WBL Workshop 2

Lab7 - Simple Accordion