Add missing break statements to last example

This commit is contained in:
Sean Wall 2017-08-07 09:38:55 -04:00 committed by GitHub
parent c6271b5c58
commit 8d625e008d

View file

@ -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' )
}