Created
September 6, 2017 04:32
-
-
Save myanmarlinks/2037e93d3b6525fe9bf73c12a5b3c973 to your computer and use it in GitHub Desktop.
Switch Statement
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 fruit; | |
if (fruit == "potato") { | |
putIntoCase(1); | |
} else if (fruit == "chilli") { | |
putIntoCase(2); | |
} else if (frunt == "tomato") { | |
putIntoCase(3); | |
} ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment