Exactly. When we give the switch
statement a value not specifically included in a case, the code under the default
label executes.
Also, when any label evaluates as true, all code underneath it will run. Including other labels. To prevent this, we use break
to exit the switch
block.
Try again, we're trying to trigger the default case here which means we need a value not defined in the case statement.