Created
May 10, 2023 15:17
-
-
Save suhailgupta03/f6ac7ff4cd70273543608be798dd3d69 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
var y = 200; // Assign 200 to y | |
switch(y){ // switch is taking 'y' as a value | |
// to validate | |
case 200: // will check if y == 200 | |
console.log("this is 200"); | |
// I have not been asked to EXIT | |
// the SWITCH block YET!!! | |
// So, I'll move ahead with the next | |
// statement | |
case 300: // will check if y == 300 | |
console.log("this is 300"); | |
break; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment