Skip to content

Instantly share code, notes, and snippets.

@myanmarlinks
Created September 6, 2017 05:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save myanmarlinks/aa2f28f52c1bc1c7d8289df694ddc83f to your computer and use it in GitHub Desktop.
Save myanmarlinks/aa2f28f52c1bc1c7d8289df694ddc83f to your computer and use it in GitHub Desktop.
Switch Statement Final
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