Making a clock with " setInterval " and padStart
to make a clock with javascript
I used
new Date() object
which returns me " Tue Aug 15 2023 00:00:51 GMT+0900 " this information.
and used method
getHours(), getMinutes(), getSeconds() to get each elements.
const clock = document.querySelector("h2#cl...
seongjin.hashnode.dev1 min read