Created
October 19, 2023 09:43
-
-
Save verfasor/778efe6c683e174dbfb0246a2c308638 to your computer and use it in GitHub Desktop.
current_day.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Current Day</title> | |
</head> | |
<body> | |
<h2 id="currentDay"></h2> | |
<script> | |
var today = new Date(); | |
var dayNumber = today.getDay(); | |
var daysOfWeek = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]; | |
var currentDay = daysOfWeek[dayNumber]; | |
var currentDayElement = document.getElementById("currentDay"); | |
currentDayElement.textContent = currentDay + " is a good day to forge success with AI"; | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment