Building a JavaScript analog clock, part 4 of 4. Now it’s time to make our script more scalable, we want the clock to automatically update, to do this we will be using a function and once we have that function we can use setInterval to automatically run the function at a specified time increment.