{"size": 672, "ext": "js", "max_stars_repo_path": "public/js/index.js", "max_stars_repo_name": "saenalcha/timer", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public/js/index.js", "max_issues_repo_name": "saenalcha/timer", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/js/index.js", "max_forks_repo_name": "saenalcha/timer", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.8461538462, "max_line_length": 56, "alphanum_fraction": 0.724702381}
function tick(cb) {
  setInterval(() => {
    const date = Date.now()
    console.log(date)
    console.log(1000)
    cb(date)
  }, 1000)
}

const timer = document.querySelector("#timer")
const hours = timer.querySelector('#hours')
const minutes = timer.querySelector('#minutes')
const seconds = timer.querySelector('#seconds')

function callback(millisecond) {
  console.log(millisecond)
  const hoursText = new Date(millisecond).getHours()
  const minutesText = new Date(millisecond).getMinutes()
  const secondsText = new Date(millisecond).getSeconds()

  hours.innerText = hoursText
  minutes.innerText = minutesText
  seconds.innerText = secondsText
}

tick(callback)