So, without further ado, here’s how to make your own countdown clock in a mere 18 lines of JavaScript. For in-depth JavaScript knowledge, read our book, JavaScript: Novice to Ninja, 2nd Edition.