Switch case syntax

Reference > Syntax of Switch - case statements

switch(variable)
{
case value:
your code here

case value:
your code here

default:
your code here



if first of the case is true all the cases bellow get executed  to prevent this we use break;