()
| 34 | } |
| 35 | |
| 36 | function resetTimer(){ |
| 37 | daysElement.innerHTML = `-`; |
| 38 | hoursElement.innerHTML = `-`; |
| 39 | minutesElement.innerHTML = `-`; |
| 40 | secondsElement.innerHTML = `-`; |
| 41 | } |
| 42 | |
| 43 | //storing the time elapsed till inputElement in the variable countdonwDate |
| 44 | let countdownDate = new Date(inputElement).getTime(); |