16 lines
312 B
JavaScript
16 lines
312 B
JavaScript
|
//// [templateStringInSwitchAndCase.ts]
|
||
|
switch (`abc${0}abc`) {
|
||
|
case `abc`:
|
||
|
case `123`:
|
||
|
case `abc${0}abc`:
|
||
|
`def${1}def`;
|
||
|
}
|
||
|
|
||
|
//// [templateStringInSwitchAndCase.js]
|
||
|
switch ("abc" + 0 + "abc") {
|
||
|
case "abc":
|
||
|
case "123":
|
||
|
case "abc" + 0 + "abc":
|
||
|
"def" + 1 + "def";
|
||
|
}
|