DEV Community

Discussion on: Create an Analog Clock with Vanilla Javascript(For Beginners)

Collapse
 
entretoize profile image
Entretoize

Nice but needs some corrections :
const hours = now.getHours();
const hoursDegree = ((((hours+minutes/60) / 12) * 360) + 90);