Looking to enhance my calendar functionality in JavaScript by disabling multiple week days. I have successfully disabled Sunday using the code snippet below, which utilizes the getDay() method. Any guidance on how to disable more than one week day with JavaScript?
disabled: function (date) {
if (date.getDay() === 0) {
return true;
}
else {
return false;
}
}
Seeking assistance.