0

I'm a newbie and decided to start learning by writing short programs, but I'm getting a weird result right at the finish line There seems to be no issue in the javascript up until the last part where I type

    hoursel.style.transform="rotate(${hoursdeg}deg)";
    minutesel.style.transform="rotate(${minutesdeg}deg)";
    secondsel.style.transform="rotate(${secondsdeg}deg)";

Then I get no movement on the hands of the clock.

When I replace "rotate(${hoursdeg}deg)" with "rotate(80deg)" for example the code works.

console.log(hoursdeg, minutesdeg, hoursdeg) also works

console.log(secondsel) returns

<div class="seconds" id="seconds"></div>
robikube
  • 11
  • 2

0 Answers0