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
2 Answers
+ 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