JavaScript: Build a Digital Clock from Scratch

Learn about native browser and JavaScript features by building a clock.

You'll inevitably work with dates and time at some point in your career. Whether you're building a countdown timer for a product launch, or scheduling some task for the computer to execute in the future, like sending out email notifications to your users, dates and time will come up in unexpected ways.

You'll learn techniques and best practices that will make these kinds of tasks easy for you in the future. More imporantly, however, you'll learn skills that are common in many different kinds of web development situations, like the browser's built-in setInterval method, as well as event handlers, loops, the DOM (Document Object Model), and more.

These lessons are taught by JavaScript consultant and teacher Mike Dane, who holds a Masters degree in computer science and has worked for Lockheed Martin.


Skills covered in this course: HTML CSS JavaScript Dates and Time Events DOM

Lessons

1. Introduction (1:56) Preview
2. Getting Started (3:26)
3. Working with Time (6:03)
4. Set Interval (7:42)
6. Updating the DOM (8:13)
10. Final DOM Update (4:12)