JS implements a simple clock<script></p>
<p> function displayTime() {<br> document.getElementById("time").innerHTML = new Date().toTimeString();<br> } <br><br> setInterval(displayTime,1000); // Call the displayTime function every 1 second <br></script>