Training

dateInput.addEventListener("input", function () { const day = new Date(this.value).getDay(); if (day === 0 || day === 6) { alert("Weekends are unavailable."); this.value = ""; } });