2. Switch statement does not allow a fall through to the next section without goto case or goto default operators.
It is required that a break statement or any other control statement (return, throw, continue) is present at the end of each section.
Empty sections (like lines 1 and 3) are exceptions to this rule.
4. These rules do also apply to the last section within the switch statement.
Ввійдіть щоб вподобати
Ввійдіть щоб прокоментувати