- Create a timer function that shows the now and then & Set a timeInterval to count backwards.
- give the
setInterval
its own variable &clearInterval
to stop the timer. - create a displaytime function to show the time on page
- create a display end time function to display the end time using
then
time stamp