Created
March 31, 2018 23:01
-
-
Save theHamdiz/254253b2c86822239354a37a942bd972 to your computer and use it in GitHub Desktop.
a digital clock app that refreshes itself every second.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
button = document.getElementById('start'); | |
button.onclick = show; | |
function show(){ | |
document.body.innerHTML = Date(); | |
setInterval(show, 1000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment