I'm beginning to understand JavaScript now but I try to understand how I can shorten a if else statement like this.
let today = prompt('Enter day').toLowerCase();
if(today === 'monday' || today === 'tuesday' || today === 'wednesday' || today === 'friday') {
console.log(`${today.replace(/^\w/, (c) => c.toUpperCase())} is a work day.`);
} else if(today === 'saturday' || today === 'sunday') {
console.log(`${today.replace(/^\w/, (c) => c.toUpperCase())} is weekend day.`);
}