Workdays

Report a typo

Imagine that you are the head of your company and have to make a calendar of workdays for your employees.

Using the switch statement, show Yes, you should go to work in the console.log if the value is between 1 and 5, inclusively. Otherwise, show No, this is your well-deserved weekend!

Sample Input 1:

1

Sample Output 1:

Yes, you should go to work
Write a program in JavaScript
function checkTheDate(value){
switch (value) {
// write your code here
}
}
___

Create a free account to access the full topic