It’s so hard to keep up with this challenge. I am struggling even if it’s seemingly an easy task (making analogue clock). Clone my repo if you are interested and here’s the demo.

My first mistake that takes too long to solve is turning hours into corresponding degree.

I thought it would be like this because there are 24 hours per day.

  var date = new Date();
  var hour = date.getHours();
  var hourDegree = (hour / 24) * 360

But fool me, the clock will always be like this.

clock 12 is the maximum, stupid!

Here’s how I solve it.

Well, that’s it for today. I am not sure I can solve tomorrow’s challenge.