---
title: "Discussion on \"Making a clock with \" setInterval \" and padStart\" | Hashnode"
description: "Discussion on \"Making a clock with \" setInterval \" and padStart\". to make a clock with javascript\nI used\nnew Date() object\nwhich returns me \" Tue Aug 15 2023 00:00:51 GMT+0900 \" this information.\nand used method\ngetHours(), getMinutes(), getSeconds() to get each elements.\nconst clock = document.querySelector(\"h2#cl..."
url: "https://hashnode.com/posts/making-a-clock-with-setinterval-and-padstart/64da42ea1f457cdcfaaa6d39"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Making a clock with " setInterval " and padStart](https://seongjin.hashnode.dev/making-a-clock-with-setinterval-and-padstart?utm_source=hashnode&utm_medium=feed)

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...

Aug 14, 2023 · 1 min read · seongjin.hashnode.dev  
Read the article

-   [#setinterval](https://hashnode.com/tag/setinterval)
-   [#clock](https://hashnode.com/tag/clock)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Seongjin Park](https://hashnode.com/@itsJin)

@itsJin

  
[View profile](https://hashnode.com/@itsJin)

WEB DEVELOPER

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
