<!DOCTYPE html>
<html>
<head>
<title>
Weekend Checker
</title>
<script src="script02.js">
</script>
</head>
<body>
<h1 id="dtField"> </h1>
</body>
</html>
window.addEventListener("load",initDate,false);
function initDate() {
var now = new Date();
if (now.getDay() > 0 && now.getDay() < 6) {
var dtString = "Sorry, it's a weekday.";
}
else {
var dtString = "Hooray, it's a weekend!";
}
document.getElementById("dtField").innerHTML = dtString;
}
What Comment could you add above this line?