Clock with Javascript 3 ways
About the analog clock, there are many ways to do it in Javascript.
The Math theory is to calculate the degree depending on how many parts you want to divide.
Because the circle is 360 degrees. The basic is one minute equal to 60 seconds, one hour equal to 60 minutes.