Skip to content
/ Clock-JS Public

Trying to make Clock Website by youtube tutorial

Notifications You must be signed in to change notification settings

w77sh/Clock-JS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clock JS

Trying to make Clock Website by youtube tutorial

const hours = document.getElementById("hours")
const minutes = document.getElementById("minutes")
const seconds = document.getElementById("seconds")

setInterval(
    function() {

    const date = new Date()
    
hours.textContent = date.getHours()
minutes.textContent = date.getMinutes()
seconds.textContent = date.getSeconds()
}
)

alt text

About

Trying to make Clock Website by youtube tutorial

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published