"use strict";

window.onload =
    function()
    {
        let datePara = document.getElementById("for_date");

        // using JavaScript's Date time a little,
        //    using optional zyBooks section 7.12 and MDN web docs on Date
        //    as a reference
        
        let now = new Date();

        // from MDN web docs:
        // method toDateString returns the "date" portion of the Date
        //     as a human-readable string such as "Wed Apr 24 2024"
        
        let todaysDate = now.toDateString();

        datePara.innerHTML = "Today's date: " + todaysDate;
    };