Added if(hoursWorked === "")

With
document.write
console.log