I am new to JavaScript. My requirement is that T want to pop up a message on particular days (like Sunday, Monday...) all through when a date is selected.
I tried
var days= ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]; var today = new Date(); document.write(days[today.getDay()]);