Switch Statement
Lesson overview
Topics covered: Multi-way branching, break and default cases.
Switch Statement
switch: switch (var) { case 1: ... }
break: exits the switch
default: default case
fall-through: case without break
Article author: Arthur Isaev