15 lines
303 B
TypeScript
15 lines
303 B
TypeScript
//// [templateStringInSwitchAndCaseES6.ts]
|
|
switch (`abc${0}abc`) {
|
|
case `abc`:
|
|
case `123`:
|
|
case `abc${0}abc`:
|
|
`def${1}def`;
|
|
}
|
|
|
|
//// [templateStringInSwitchAndCaseES6.js]
|
|
switch (`abc${0}abc`) {
|
|
case `abc`:
|
|
case `123`:
|
|
case `abc${0}abc`:
|
|
`def${1}def`;
|
|
}
|