0

How to get clock in JS?

What is the syntax for writing a clock on the website HH:mm:ss:ms var d=new Date(); document.write(d.getSeconds()) How to update?

4th Jan 2019, 12:25 PM
Cлaвeн Ђервида
Cлaвeн Ђервида - avatar
4 Réponses
+ 1
setInterval(1000); 1000 is milliseconds
4th Jan 2019, 12:39 PM
_yaroslavv [online_everyday]
_yaroslavv [online_everyday] - avatar
+ 1
Can You write a code, please?
4th Jan 2019, 12:39 PM
Cлaвeн Ђервида
Cлaвeн Ђервида - avatar