Earlier this year, I did the JavaScript30 course by Wes Bos. I decided to try it again despite completing it (mostly) because it was fun.
Day 2 stumped me with the clock. I had revisited it in my nightmares and in the physical realm, still mystified as to why my hands weren't moving.
Tonight, I started with this one straight on, with 90% success.
New GitHub -> Here.
Why does it work now? Here's a sample of both codes;
For some reason, the old code has a lot of unnecessary calculations for the degrees the minute hand should twitch. Why is the 6 there all by itself?
EMPLOYERS: This is me putting new skills into practice.
Day 2 stumped me with the clock. I had revisited it in my nightmares and in the physical realm, still mystified as to why my hands weren't moving.
Tonight, I started with this one straight on, with 90% success.
New GitHub -> Here.
Why does it work now? Here's a sample of both codes;
New.
Old.
EMPLOYERS: This is me putting new skills into practice.
Comments
Post a Comment