function main(arg1){
switch(arg1) {
case 'Jatin':
alert('This is Jatin');
break;
case 'Vivek':
alert('This is Vivek');
break;
case 'Vikas':
alert('This is Vikas');
break;
default:
alert('The name is not found');
} // no semi colon
} // closing brace
main("Jatin");
0
solved Switch Statement-JavaScript [closed]