Answers for "typescript switch test per case"

1

typescript switch test per case

switch(true) { 
   case if(constant1 == 1): { 
      //statements; 
      break; 
   } 
   case if(constant2 == 2): { 
      //statements; 
      break; 
   } 
   default: { 
      //statements; 
      break; 
   } 
}
Posted by: Guest on October-26-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language