Add missing break statements to last example
This commit is contained in:
parent
c6271b5c58
commit
8d625e008d
1 changed files with 2 additions and 1 deletions
|
@ -155,6 +155,7 @@ switch (arg) {
|
||||||
case '0':
|
case '0':
|
||||||
case '1':
|
case '1':
|
||||||
alert( 'One or zero' );
|
alert( 'One or zero' );
|
||||||
|
break;
|
||||||
|
|
||||||
case '2':
|
case '2':
|
||||||
alert( 'Two' );
|
alert( 'Two' );
|
||||||
|
@ -162,7 +163,7 @@ switch (arg) {
|
||||||
|
|
||||||
case 3:
|
case 3:
|
||||||
alert( 'Never executes!' );
|
alert( 'Never executes!' );
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
alert( 'An unknown value' )
|
alert( 'An unknown value' )
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue