Created
October 28, 2018 01:57
-
-
Save tkssharma/9fd6acf0418bbee0ae1a49770d44640c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function switchFunction(num: number) { | |
let b: string = "functionb"; | |
switch (num) { | |
case 1: { | |
let b: string = "case 1"; | |
break; | |
} // After break | |
case 2: | |
{ | |
let b: string = "case 2"; | |
} // Before break | |
break; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment