Created
June 28, 2018 10:32
-
-
Save humayunahmed8/d77103ae8683992b0b1821fa87769a0a to your computer and use it in GitHub Desktop.
Javascript Switch
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
// Switch Statement | |
var x = 100; | |
switch (x) { | |
case 5: | |
document.write('Hello Bangladesh'); | |
break; | |
case 10: | |
document.write('Hello RRF'); | |
break; | |
case 25: | |
document.write('Hello Basis'); | |
break; | |
case 100: | |
document.write('Hello A2i'); | |
break; | |
default: | |
document.write('Opps!'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment