02Geek HTML5 and JavaScript, TypeScript, React, Flash, ActionScript online School

Creating a timer

Throughout this chapter we haven't done any animations. We were too busy exploring objects and the Date object specifically. In this last lesson of this chapter we're going back into animation as we create a timer. We will be using the functions setInterval and with it, we will update our screen once a second. By the end of this lesson, you will know how to create content that updates on a timely base. The main functions we are going to explore are: setInterval and clearInterval.

Ready to Level Up Your Skills?

Join thousands of learners on 02GEEK and start your journey to becoming a coding expert today!

Enroll Now for Free!

Movings from Functions to Objects

Moving from functions of the world of objects.

00:48

Don't object, it's only an object

What are objects? How do we work with them? And how do we integrate them in JavaScript. That is today's topic.

10:44

Charge your phone, we're going on a date.

There is no better way to understand how to extend by practice. In this lesson we explore the date object.

09:51

It's your birth date

In this lesson we learn how to use the map operators in the process of creating a timer.

13:34

Playing with cats, functions and objects

Practice makes perfect. In this lesson we practice the usage of functions and objects.

13:04

Creating a timer

Everything is ready all that's left is to animate. In this lecture that's exactly what we're going to do.

06:15