Learn how to create a countdown timer with JavaScript.
Learn how to do it in this tutorial: https://www.w3schools.com/howto/howto_js_countdown.asp
Try it yourself here: https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_countdown
Tip: Learn more about the window.setInterval() method in our JavaScript Reference.