﻿// declaring new variables
var date = new Date();
var hour = date.getHours();

// simple conditional content output
if (hour >= 22 || hour <= 1) 
  document.write("Goodnight, world!");
else
  document.write("Hello, world!");