According to a tutorial from w3schools that discusses switch statements, it is advised:
If the default case is not the last case in the switch block, it is important to remember to end it with a break statement.
However, the same tutorial also explains:
When JavaScript encounters a break keyword, it will exit the switch block.
This raises the question: if a default case with a break statement is placed at the beginning of a switch statement, wouldn't the default case always be executed and the block immediately exited by the interpreter? Does the interpreter not read the items in the switch statement sequentially?