function get_value(n) {
let text;
switch (n) {
case 1:
case 2:
case 3:
text = "n = 1 , 2 or 3";
break;
case 4:
case 5:
text = "n = 4 or 5";
break;
case 9:
case 13:
text = "n = 9 or 13";
break;
default:
text = "default";
}
return text;
}
console.log(get_value(2));
/*
run:
"n = 1 , 2 or 3"
*/