let timer =0; function showTime() { var d = new Date(); document.getElementById("demo").innerHTML = d.toLocaleTimeString(); }