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 '1':
|
||||
alert( 'One or zero' );
|
||||
break;
|
||||
|
||||
case '2':
|
||||
alert( 'Two' );
|
||||
|
@ -162,7 +163,7 @@ switch (arg) {
|
|||
|
||||
case 3:
|
||||
alert( 'Never executes!' );
|
||||
|
||||
break;
|
||||
default:
|
||||
alert( 'An unknown value' )
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue