This blog might be short. It’s Daylights Savings Time tomorrow. So, I’ll be losing an hour. It wouldn’t usually matter except that I work on the weekends. Then, no work on weekdays.
This setup has allowed me to devote a lot of time learning how to code. But, it’s also the reason why I have to keep this short. I need to catch some zzz’s.
I fired all engines as soon as I had the time to start coding. I watched the video first. It was a 10 minutes long. I wanted to make sure that I was on the right track before I jumped into coding.
Then, off I go. Again, like yesterday, instead of using the starter kit, I coded from scratch.
Yesterday, my biggest headache was aligning and centering. That wasn’t such a problem today. I guess that was the incremental knowledge I got from doing the Drum Kit project.
I had doubts about learning from this course because, I felt like I cheated yesterday by doing a partial walk through. However, some of my chingu.io cohort mates assured me that going through JS30 is worth it. There are valuable lessons to be learned. I realized today that they are right.
It took me about 1 hour to finish the HTML and CSS part. Then, another 2 hours for the JS part. The JS part was also a bit easier today than yesterday.
Here’s some of the things I learned.
Date instance includes several methods. The 3 I used are
These 3 allowed me to grab the values or hours, minutes, and seconds which I used to manipulate the hands of the clock that I created with divs. I mainly used the
transform: rotate property to rotate the hands of the clock.
Alright that’s all folks. Talk to you tomorrow.
Before you go, check out my project here.