Javascript Switch Statement
A Javascript switch statement is used to execute a block of statements based on the switch expression value. It is like an if else if statement. Syntax: switch(expression){ case value1: //Javascript block of statements break; case value2: //Javascript block of statements break; … default: //Javascript block of statements break; } JavaScript Switch Statement Example: <html> … Read more