1/* curly braces inside the case */
2
3const i = 1
4
5switch (i) {
6 case 0: {
7 let x = 2342;
8 let s = 1 + x;
9 console.log(x+' & '+s+' from inside');
10 } break;
11 case 1: {
12 let x = 2342;
13 let s = 'b';
14 console.log(x+' & '+s+' from inside'); /* 2342 & b from inside */
15 } break;
16}
17
18console.log(x+' & '+s+' from outside'); /* Uncaught ReferenceError */
19