I am going to show you how to design a simple animated Digital Clock in JavaScript. Since a browser executes a JavaScript program on the client side, the script will pick up the time of the client’s computer and display it.