This is the countdown timer S. We're going to build a countdown timer, so who doesn't love countdown
timers counting down to our favorite time and we need to know how much time is left until we get our
deadline.
So the countdown timer is going to use the JavaScript date and we're going to be working with dates
quite a bit within this section as well as getting the time.
So getting in in seconds, getting it in minutes, getting an hour's getting in a day's outputting it
visually as well as storing it locally so that we can store whatever the selection is and the users
made that selection.
So let's check this one out.
So you come to the application and you're presented with an option to select a date and then it presents
you with how many hours, how many minutes, how many seconds are left until that date gets hit and
this countdown timer will continuously count down.
Even if you refresh the page, you can see that we still have the same date and time within the countdown
timer.
So this is stored locally and we check for the local value.
And then if there is a local value, then we output that into the input field as well as continue our
countdown timer so you can refresh and you see that we still have the countdown timer and the way that
this works using JavaScript date primarily, as well as some manipulation and calculations behind the
scenes.