1const x = this.dealer;
2switch (true) {
3 case (x < 5):
4 alert("less than five");
5 break;
6 case (x < 9):
7 alert("between 5 and 8");
8 break;
9 case (x < 12):
10 alert("between 9 and 11");
11 break;
12 default:
13 alert("none");
14 break;
15}