A real time clock created with javascript, This code defines a showTime function that gets the current time using the Date object and formats it into a string. It then sets the innerText of the HTML element with ID "clock" to the formatted time. Finally, it sets up an interval to call showTime every second, which updates the clock display in real-time.
-
Notifications
You must be signed in to change notification settings - Fork 0
boniface193/javaScriptClock
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A real time clock created with javascript, This code defines a showTime function that gets the current time using the Date object and formats it into a string.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published