JavaScript setInterval()
Using setInterval() to display the time every second (1000 milliseconds).