JavaScript Switch Statement Multiple Cases

Last Updated On Saturday 28th Aug 2021

javascript switch multiple case

multiple cases in switch statement in JavaScript,

  • Use the fall-through feature of the switch statement
  • A matched case will run until a break is found

case javascript

	switch (name)
   case "AB":
   case "BC":
   case "CD":
       alert('HEY YOU');

       alert('Default HII');