Answers for "switch case same code for 2 cases"

0

switch case same code for 2 cases

switch (myVar) {
  case 68:
  case 40:
    // Do stuff
  break;

  case 30:
    // Do stuff
  break;
}
Posted by: Guest on October-27-2021

Browse Popular Code Answers by Language