DEV Community

Cover image for Digital Clock using JavaScript

Digital Clock using JavaScript

Neha Soni on May 15, 2021

Hello readers, In this article, you will learn how to design a simple animated Digital Clock in JavaScript. A digital clock or watch in which the ...
Collapse
 
grahamthedev profile image
GrahamTheDev

Quick heads up, in your example (demo) the AM and PM can get pushed down onto the following line if the numbers are all wide numbers. Just needs a tiny bit of extra space adding to the container.

Other than that, looks great, very psychedelic! ❀️

Collapse
 
nehasoni__ profile image
Neha Soni

Don't worry I will check it and update the code 😊🀝

Collapse
 
kiranrajvjd profile image
Kiran Raj R

You can add "javascript" after your opening backticks for syntax highlighting.

Collapse
 
nehasoni__ profile image
Neha Soni

Woww... Thank you very much for this!
This really is awesome😍😍

Collapse
 
kiranrajvjd profile image
Kiran Raj R

Happy that the tip was useful

Collapse
 
itzmeelvis profile image
β›³Elvis Awowari daβ€˜β€™ HackModderβ„’β›Ή

Cool

Collapse
 
nehasoni__ profile image
Neha Soni

Thank you🀝

Collapse
 
bubblicious profile image
bubblicious-a

great work

Collapse
 
nehasoni__ profile image
Neha Soni

Thank youπŸ˜ŠπŸ™Œ

Collapse
 
leandroruel profile image
Leandro RR

really cool article. i'm teaching my friend to code, she already learned the basics of html and css and some js. i'm going to give this challenge to her

Collapse
 
nehasoni__ profile image
Neha Soni

Thank you 😊😊
I hope your friend also find it usefulπŸ™Œ

Collapse
 
nehasoni__ profile image
Neha Soni

Thanks for sharing the link. I’ll check it out!😊🀝

Collapse
 
arunprakash142 profile image
Arunprakash142

Hi, Thank you for sharing. I am happy reading this. I have found interesting projects in this projects for diploma students.