This site is mobile accessible. Press the "Tap Here" button to use a smaller font-size.
Smartphone icons created by Freepik - Flaticon
Return the weekday as a number.
You can use an array of names to return the weekday as a name:
Today is .
const days = ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]; const d = new Date(); let day = days[d.getDay()]; document.getElementById("demo").innerHTML = day;