SOURCE

var data = window.prompt('input');
// var data = 2;
switch (data) {
    case 'monday': 
    case 'tuesday': 
    case 'wednesday': 
    case 'thursday': 
    case 'friday': 
        console.log('working');
        break;
    case 'saturday': 
    case 'sunday': 
        console.log('relaxing');
        break;
}
console 命令行工具 X clear

                    
>
console