My code isn't printing anything. I am trying to print current time.
var now = new Date();
var hours = now.gethours();
var seconds = now.getSeconds();
var minutes = now.getMinutes();
document.write(hours + ":" + minutes + ":" + seconds + "<br/>");
var hours = now.gethours(); to
var hours = now.getHours();