JavaScript Switch Statement
he switch statement is used to perform different actions based on different conditions. Switch Statement Use the switch statement to select one of many code blocks to be executed. Syntax switch(expression) { case n: code block break; case n: code block break; default: code block } This is how it works: The switch […]
