Created
September 6, 2017 05:19
-
-
Save myanmarlinks/aa2f28f52c1bc1c7d8289df694ddc83f to your computer and use it in GitHub Desktop.
Switch Statement Final
This file contains 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
var myClass = 2; | |
switch(myClass) { | |
case 1: | |
console.log("3000 Ks"); | |
break; | |
case 2: | |
console.log("4000 Ks"); | |
break; | |
case 3: | |
console.log("5000 Ks"); | |
break; | |
case 4: | |
console.log("6000 Ks"); | |
break; | |
case 5: | |
console.log("7000 Ks"); | |
break; | |
default: | |
console.log("8000 Ks"); | |
break; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment